Hey Team,
I’m trying to run the OWASP ZAP zap-full-scan.py with additional ajax Spider on a Standard Linux vm with Oracle Linux 8 in a docker container.
docker run -d --rm --user $(id -u):$(id -g) -v "$OWASP_REPORT_PATH":/zap/wrk/:rw -t zap2docker-stable:2.12.0 zap-full-scan.py -t "$OWASP_TARGET" -z "-config api.key=123" -j -g gen.conf -r "$OWASP_REPORT_FILE_NAME" --hook hooks.py
Running the script locally does not cause any problem. However, when trying to run the ajax spider on the Linux Server it stops after a few seconds with the error message that Firefox-headless cannot be started.
WARN org.zaproxy.zap.extension.spiderAjax.SpiderThread - Failed to start browser firefox-headless
com.google.inject.ProvisionException: Unable to provision, see the following errors:
1) [Guice/ErrorInCustomProvider]: WebDriverException: Process unexpectedly closed with status 1
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: '49df267a603f', os.name: 'Linux', os.arch: 'amd64', os.version: '5.4.17-2102.205.7.3.el8uek.x86_64', java.version: '11.0.18'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
at ConfigurationModule.configure(ConfigurationModule.java:47)
\_ installed by: CoreModule -> ConfigurationModule
at CrawlerContext.<init>(CrawlerContext.java:33)
\_ for 1st parameter
at Crawler.<init>(Crawler.java:75)
\_ for 1st parameter
at CrawlTaskConsumer.<init>(CrawlTaskConsumer.java:30)
\_ for 3rd parameter
while locating CrawlTaskConsumer
Learn more:
https://github.com/google/guice/wiki/ERROR_IN_CUSTOM_PROVIDER
1 error
======================
Full classname legend:
======================
ConfigurationModule: "com.crawljax.di.ConfigurationModule"
CoreModule: "com.crawljax.di.CoreModule"
CrawlTaskConsumer: "com.crawljax.core.CrawlTaskConsumer"
Crawler: "com.crawljax.core.Crawler"
CrawlerContext: "com.crawljax.core.CrawlerContext"
WebDriverException: "org.openqa.selenium.WebDriverException"
========================
End of classname legend:
========================
Does it have something to do with the fact that it is a headless server and therefore firefox cannot be started? or does the connection between firefox and the docker container must be configured separately?
Regards,
Alex
Hey thc202,
Thanks for the support and the quick reply.
The update to version 2.13.0 does not work at the moment, due to the port bind exception already described in this group. However, removing the user input has already solved the problem completely.
Regards,
Alex