Repository navigation
fix(dvwa): redirect http to https in ingress - #110
Merged
Merged
Conversation
Since nexploit#5669 the crawler's OpenDir, Robots and Sitemap probes follow one redirect. DVWA's Apache sits behind the TLS-terminating ingress, so its trailing-slash redirect is absolute http (`https://host/dvwa` -> `http://host/dvwa/`). With `ssl-redirect` disabled the ingress served the whole app over plain http, and the crawler built a second, http copy of the site from the listing links. That duplicated entrypoints and issues and made the DVWA e2e tests flaky (e.g. Directory Listing reported on `http://host/docs/`, extra Full Path Disclosure on `http://.../vulnerabilities/captcha/`). Redirect http to https in the dvwa and dvwa-medium-security ingresses, as a typical production deployment does, so scans stay on https.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This change is required after BrightSec/nexploit#5669 ("follow redirects in OpenDir, Robots and Sitemap probes").
Since #5669 the crawler probes follow one redirect. DVWA's Apache sits behind the TLS-terminating ingress, so its trailing-slash redirect is an absolute http URL:
With
nginx.org/ssl-redirect: "False"the ingress served the whole app over plain http, so the crawler followed the downgrade, parsed the http directory listing and built a second, http copy of the site. That duplicated entrypoints and issues and broke the DVWA e2e tests, e.g.:http://<host>/docs/instead ofhttps://<host>/docs/(C35211, C35214, C35224)http://<host>/vulnerabilities/captcha/(C35211)Confirmed in the crawler logs of scan
aGiveqswFARuSAR2ke5Kz6(C35211): the first http URL in the scan is the OpenDir probe following the redirect above.What
Set
nginx.org/ssl-redirect: "True"fordvwaanddvwa-medium-securityand bump the chart versions (0.0.8 -> 0.0.9, 1.0.1 -> 1.0.2).Alternatives considered
Follow-up
After the chart is released, rerun C35211, C35214, C35224 and the IPM DVWA tests recalibrated in engine-e2e#1515 (C7746, C7747, C7748, C7749, C7784, C8418). Their entrypoint counts are expected to drop and will need recalibration.