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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble excluding results from a quick scan #93

Open
arthurakay opened this issue Feb 4, 2020 · 0 comments
Open

Trouble excluding results from a quick scan #93

arthurakay opened this issue Feb 4, 2020 · 0 comments

Comments

@arthurakay
Copy link

I have a bash script in which I run the following:

docker run -i owasp/zap2docker-weekly zap-cli quick-scan \
    --self-contained \
    --start-options '-config api.disablekey=true' \
    -s all \
    -e /*\.js$/i \
    --spider \
    --ajax-spider \
    -r \
    $STACK

Notice the -e /*\.js$/i bit -- I'm trying to eliminate the following false-positives which (I'm fairly certain) are the result of my JavaScript files being obfuscated:

[INFO]            Running a quick scan for https://xx.yyy.io
[INFO]            Issues found: 3
+----------------------------------------+--------+----------+--------------------------------------------------------------+
| Alert                                  | Risk   |   CWE ID | URL                                                          |
+========================================+========+==========+==============================================================+
| Hash Disclosure - Mac OSX salted SHA-1 | High   |      200 | https://xx.yyy.io/static/dll/76c7a32f60c9b2ab5d0f.js |
+----------------------------------------+--------+----------+--------------------------------------------------------------+
| Hash Disclosure - Mac OSX salted SHA-1 | High   |      200 | https://xx.yyy.io/static/dll/76c7a32f60c9b2ab5d0f.js |
+----------------------------------------+--------+----------+--------------------------------------------------------------+
| Anti CSRF Tokens Scanner               | High   |      352 | https://xx.yyy.io/static/dll/353fb1927e899732c1fc.js |
+----------------------------------------+--------+----------+--------------------------------------------------------------+

I'd actually prefer to simply ignore the CWE IDs directly (rather than exclude files)... but I don't think there are any flags which enable me to do that.

Am I using the -e flag incorrectly? It's clearly not excluding my JS files. Or is there another way I can configure this scan to ignore those two CWE IDs?

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

1 participant