Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWASP ZAP instructions appear to be wrong #9

Open
psiinon opened this issue Mar 31, 2023 · 2 comments
Open

OWASP ZAP instructions appear to be wrong #9

psiinon opened this issue Mar 31, 2023 · 2 comments

Comments

@psiinon
Copy link

psiinon commented Mar 31, 2023

The instructions for using ZAP on https://appdefensealliance.dev/casa/tier-2/ast-guide/dynamic-scan appear to be wrong.
This may well be the wrong place to report this, but I've not been able to find any other alternatives 馃槈
The problem is the example at the end:

  docker run -p 8080:8080 -v $(pwd):/zap/wrk/:rw 
  -t owasp/zap2docker-stable zap-full-scan.py 
  -t https://example.com -P 8080 
  -c zap-casa-config.conf -x results-full.xml 
  -n /Users/DemoUser/Documents/Context.context -U test@example.com

The context file /Users/DemoUser/Documents/Context.context will not be accessible as that folder has not been mounted.
It should be something like /zap/wrk/Context.context, assuming that the user has put that context file in their CWD.

@stevebauman
Copy link

For a beginner to ZAP trying to get an application certified for Google OAuth certification, this process has been a nightmare to say the least. Been trying to get this running on my MacBook Pro M2, and haven't managed to get it running without errors.

These commands shown in the docs also cannot be simply pasted in the terminal to be executed, as the arguments are broken up with newlines (\n).

@stevebauman
Copy link

For anyone else looking at this issue experiencing problems, I had to edit the context file output by the ZAP UI and add in a <incregexes> element with my test URL:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configuration>
    <context>
        <name>https://example.com</name>
        <desc/>
        <inscope>true</inscope>
+	<incregexes>https://example.com*</incregexes>
        <tech>
        ...

Then, place both the zap-casa-config.conf and context.context into the same folder, cd into that folder in the terminal, and run the below command:

docker run -p 8080:8080 -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-full-scan.py -t https://example.com -P 8080 -c zap-casa-config.conf -r results-full.html -n /zap/wrk/context.context -U username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants