Skip to content

Exclude cryptography page from DVWA full scan plan - #529

Closed
Shivambakal wants to merge 1 commit into
zaproxy:mainfrom
Shivambakal:Shivambakal-patch-2
Closed

Shivambakal wants to merge 1 commit into
zaproxy:mainfrom
Shivambakal:Shivambakal-patch-2

Conversation

@Shivambakal

Copy link
Copy Markdown

Fixes #522. Adds http://localhost:4280/vulnerabilities/cryptography.* to excludePaths in other/af-plans/FullScanDvwaAuth.yaml. This is a plan-level exclude of one path (the cryptography challenge page, which the scanner flags as a false positive); it does not change spider behaviour elsewhere. The plan's spider test requires ≥100 URLs found and this removes a single path, so the count is not plausibly affected — but I could not run DVWA + ZAP locally, so please confirm via CI.

Signed-off-by: Shivam bakal <133800834+Shivambakal@users.noreply.github.com>
@psiinon

psiinon commented Nov 25, 2026

Copy link
Copy Markdown
Member

Logo
Checkmarx One – Scan Summary & Details – 0ecbcdbd-4ea2-43d6-b072-f3325ff7e7f4


New Issues (10 out of 10) Checkmarx found the following issues in this Pull Request

Severity: 1 High · 3 Medium · 6 Low

# Severity Issue Source File / Package Checkmarx Insight
1 HIGH Last User Is 'root' /docker-wrapper: 10
detailsLeaving the last user as root can cause security risks. Change to another user after running the commands that need privileges
2 MEDIUM Hardcoded_Password_in_Connection_String other/api/sdlc-integration/core/scan_module/scan.py: 219
detailsThe application contains hardcoded connection details, "PASS: ", at line 219 of /other/api/sdlc-integration/core/scan_module/scan.py. This conn...
Attack Vector
3 MEDIUM Unchecked_Input_for_Loop_Condition standalone/load_context_from_burp.py: 29
detailsMethod at line 29 of /standalone/load_context_from_burp.py obtains user input from load - the range of this value is not validated, and is ev...
Attack Vector
4 MEDIUM Use_of_Broken_or_Risky_Cryptographic_Algorithm payloadgenerator/associated_fields.py: 34
detailsIn , the application protects sensitive data using a cryptographic algorithm, hexdigest, that is considered weak or even trivially broken, in /payl...
Attack Vector
5 LOW Filtering_Sensitive_Logs other/api/sdlc-integration/core/scan_module/scan.py: 243
detailsThe application logs various user events, and in method  writes sensitive user details to debug, in /other/api/sdlc-integration/core/scan_module/...
Attack Vector
6 LOW Filtering_Sensitive_Logs other/api/sdlc-integration/core/scan_module/scan.py: 218
detailsThe application logs various user events, and in method  writes sensitive user details to debug, in /other/api/sdlc-integration/core/scan_module/...
Attack Vector
7 LOW MAINTAINER Instruction Being Used /docker-wrapper: 3
detailsThe MAINTAINER instruction sets the Author field of the generated images. The LABEL instruction is a much more flexible version of this and you sh...
8 LOW Unpinned Actions Full Length Commit SHA /codeql.yml: 31
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA help...
9 LOW Unpinned Actions Full Length Commit SHA /codeql.yml: 34
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA help...
10 LOW Unpinned Actions Full Length Commit SHA /codeql.yml: 35
detailsPinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA help...

Use @Checkmarx to take action directly from this PR:

  • Rescan the PR

Try it: @Checkmarx how can you help? · @Checkmarx rescan this PR

@psiinon

psiinon commented Nov 25, 2026

Copy link
Copy Markdown
Member

This does not seem to be a good way to exclude false positives.
What is the alert raised?

@Shivambakal

Copy link
Copy Markdown
Author

Hi Simon, thanks for the question — and honestly, re-reading #522, the issue doesn't actually name an alert at all. What the reporter describes is the spider finding thousands of URLs on the /vulnerabilities/cryptography?token= endpoint, so this isn't an alert false positive in the first place, and I don't want to invent an alert name that isn't in the thread.

What this PR does is narrowly scoped: it adds a single path pattern (http://localhost:4280/vulnerabilities/cryptography.*) to the plan's excludePaths. It doesn't change any scan rule or suppress any alert anywhere — it only keeps the spider from enumerating the tokenised cryptography URLs, and nothing else in the plan changes.

That said, if you'd rather handle this differently — for example with an alert filter rule, or another spider config option as you mentioned on the issue — I'm happy to rework the PR. Which approach would you prefer?

@psiinon

psiinon commented Nov 25, 2026

Copy link
Copy Markdown
Member

But is that a real problem?
Does it take much longer to crawl those URLs?
Do they end up in the Sites Tree?
I'll comment on the original issue - if you are not able to run DVWA and ZAP then you will not be able to answer these questions.
Trying to fix problems when you cannot reproduce them is hard, and adds work for reviewers, as they have to then test your changes.

@Shivambakal

Copy link
Copy Markdown
Author

Hi Simon, fair questions — let me answer what I can from the issue itself, and be straight about what I can't.

Is it a real problem? The reporter describes the spider finding thousands of URLs on the /vulnerabilities/cryptography?token= endpoint. That's the cost: thousands of tokenised URLs enumerated on every crawl of that plan — crawl bloat even if each URL is harmless. I can't give you a measured crawl time, and I can't confirm whether they land in the Sites tree — the issue thread doesn't say, and that's the honest gap.

Can I reproduce it? Not locally, no — I don't have a DVWA + ZAP setup I can run here, so I can't answer the crawl-time / Sites-tree questions with a run of my own. I know that makes this harder to review, and I don't want to waste your time testing something I can't verify myself.

What this PR does is deliberately narrow: one path pattern in excludePaths, no scan rule touched, no alert suppressed anywhere. If the evidence bar for that is a reproduction, I understand — happy for you to close this, or tell me what evidence you'd accept and I'll go get it. Which would you prefer?

@psiinon

psiinon commented Nov 25, 2026

Copy link
Copy Markdown
Member

Yeah, will close this.
We need the initial questions I raised in the issue answered first.
But thanks for looking at this anyway.

@psiinon psiinon closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Missing exclude path in FullScanDvwaAuth.yaml

2 participants