I am attempting to run the dynamic scan according to the instructions on appdefense alliance's website for CASA security assessment. I have also referred to the owasp zap docker documentation, but I see the following issues:
Traceback (most recent call last):
File "/zap/zap-full-scan.py", line 357, in main
zap_spider(zap, target)
File "/zap/zap_common.py", line 108, in _wrap
return_data = func(*args_list, **kwargs)
File "/zap/zap_common.py", line 424, in zap_spider
raise_scan_not_started()
File "/zap/zap_common.py", line 411, in raise_scan_not_started
raise ScanNotStartedException('Failed to start the scan, check the log/output for more details.')
zap_common.ScanNotStartedException: Failed to start the scan, check the log/output for more details.
...
...
8708 [ZAP-daemon] INFO org.zaproxy.addon.network.ExtensionNetwork - ZAP is now listening on
0.0.0.0:808012390 [ZAP-IO-Server-1-2] WARN org.zaproxy.zap.extension.api.API - Bad request to API endpoint [/JSON/spider/action/scanAsUser/] from [127.0.0.1]:
org.zaproxy.zap.extension.api.ApiException: MISSING_PARAMETER (url)
I have followed these steps:
- Use Owasp Zap desktop app to create my context with JSON-based auth, according to the instructions here
- Created two users: verified and unverified in the context, and exported the file
- cd into the folder containing my .context file and zap-casa-config.conf
- Run this command:
docker run -p 8080:8080 -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-full-scan.py -t https://www.myappdomain.ca -P 8080 -c zap-casa-config.conf -x results-full.xml -n ./DastContext.context -U verified
(I also tried -n /zap/wrk/DastContext.context to no avail, and tried removing -P 8080 but it didn't help)
I am required to complete this scan for work, but I am unfamiliar with this software. I'm trying to understand from the documentation what I could have missed, I just keep getting this error. I tried also running the app locally but I encountered even more issues.
Not sure where to go from here, any help would be greatly appreciated! Thanks.