The DomXSS active scanner plugin is failing when running in daemon mode. Following is the configuration and output. Sorry if the error output is hard to read. I did not see a way to put it in a code block. Any help is appreciated!
zap.sh -daemon -port 8181 -config connection.timeoutInSecs=60 -config api.key=test -config connection.proxyChain.enabled=true -config connection.proxyChain.hostName=127.0.0.1 -config connection.proxyChain.port=8080
52718300 [Thread-5640] INFO org.parosproxy.paros.core.scanner.HostProcess - start host https:/
redacted.com | DomXssScanRule strength MEDIUM threshold MEDIUM
1648036255998 geckodriver INFO Listening on
127.0.0.1:168121648036256069 mozrunner::runner INFO Running command: "/usr/bin/firefox" "--marionette" "-headless" "-no-remote" "-profile" "/tmp/rust_mozprofileLS9qH7"
*** You are running in headless mode.
console.error: Region.jsm: "Failed to fetch region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
1648036274435 Marionette INFO Listening on port 38785
1648036274481 Marionette WARN TLS certificate errors will be ignored for this session
Mar 23, 2022 7:51:14 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
52737369 [ZAP-ProxyThread-58114] ERROR org.parosproxy.paros.core.proxy.ProxyThread - An error occurred while notifying listener:
java.lang.IllegalStateException: Connection factory has been shutdown.
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.doGetConnection(MultiThreadedHttpConnectionManager.java:463) ~[commons-httpclient-3.1.jar:2.11.1]
at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionWithTimeout(MultiThreadedHttpConnectionManager.java:416) ~[commons-httpclient-3.1.jar:2.11.1]
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:189) ~[zap-2.11.1.jar:2.11.1]
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) ~[commons-httpclient-3.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.executeMethod(HttpSender.java:430) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.runMethod(HttpSender.java:672) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.send(HttpSender.java:627) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.sendAuthenticated(HttpSender.java:602) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.sendAndReceiveImpl(HttpSender.java:1034) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.network.HttpSender.sendAndReceive(HttpSender.java:994) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.core.scanner.AbstractPlugin.sendAndReceive(AbstractPlugin.java:313) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.core.scanner.AbstractPlugin.sendAndReceive(AbstractPlugin.java:246) ~[zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.core.scanner.AbstractPlugin.sendAndReceive(AbstractPlugin.java:218) ~[zap-2.11.1.jar:2.11.1]
at org.zaproxy.zap.extension.domxss.DomXssScanRule.access$000(DomXssScanRule.java:66) ~[?:?]
at org.zaproxy.zap.extension.domxss.DomXssScanRule$1.onHttpRequestSend(DomXssScanRule.java:240) ~[?:?]
at org.parosproxy.paros.core.proxy.ProxyThread.notifyOverrideListenersRequestSend(ProxyThread.java:747) [zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.core.proxy.ProxyThread.processHttp(ProxyThread.java:541) [zap-2.11.1.jar:2.11.1]
at org.parosproxy.paros.core.proxy.ProxyThread.run(ProxyThread.java:319) [zap-2.11.1.jar:2.11.1]
at java.lang.Thread.run(Thread.java:831) [?:?]
(firefox-esr:13773): Gtk-CRITICAL **: 07:51:26.496: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(firefox-esr:13773): Gtk-CRITICAL **: 07:51:26.499: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
(firefox-esr:13773): Gtk-CRITICAL **: 07:51:26.499: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
ExceptionHandler::GenerateDump cloned child 13985
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
[GFX1-]: Receive IPC close with reason=AbnormalShutdown
Exiting due to channel error.
[GFX1-]: Receive IPC close with reason=AbnormalShutdown
Exiting due to channel error.
[GFX1-]: Receive IPC close with reason=AbnormalShutdown
Exiting due to channel error.
1648036287310 geckodriver::marionette ERROR Failed to close browser connection: Socket not connected (os error 107)
52911521 [ZAP-ActiveScanner-0] ERROR org.zaproxy.zap.extension.domxss.DomXssScanRule - Tried to run command without establishing a connection
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'redacted', ip: '192.168.122.124',
os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-16-amd64', java.version: '16.0.1'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 78.15.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20210927121355, moz:geckodriverVersion: 0.30.0, moz:headless: true, moz:processID: 13773, moz:profile: /tmp/rust_mozprofileLS9qH7, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-16-amd64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore}
Session ID: 422b8fd9-2b6a-442c-80af-057d15042480
org.openqa.selenium.NoSuchSessionException: Tried to run command without establishing a connection
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'redacted', ip: '192.168.122.124',
os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.0-16-amd64', java.version: '16.0.1'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 78.15.0, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20210927121355, moz:geckodriverVersion: 0.30.0, moz:headless: true, moz:processID: 13773, moz:profile: /tmp/rust_mozprofileLS9qH7, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, platformVersion: 4.19.0-16-amd64, rotatable: false, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore}
Session ID: 422b8fd9-2b6a-442c-80af-057d15042480
at jdk.internal.reflect.GeneratedConstructorAccessor83.newInstance(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:?]
at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[?:?]
at java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[?:?]
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187) ~[?:?]
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122) ~[?:?]
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49) ~[?:?]
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158) ~[?:?]
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83) ~[?:?]
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) ~[?:?]
at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:277) ~[?:?]
at org.zaproxy.zap.extension.domxss.DomXssScanRule.returnDriver(DomXssScanRule.java:349) ~[?:?]
at org.zaproxy.zap.extension.domxss.DomXssScanRule.scan(DomXssScanRule.java:656) ~[?:?]
at org.parosproxy.paros.core.scanner.AbstractPlugin.run(AbstractPlugin.java:333) [zap-2.11.1.jar:2.11.1]
at java.lang.Thread.run(Thread.java:831) [?:?]