Repository navigation
fix(e2e-targets): redirect http to https for targets with http duplicates - #113
Merged
Merged
Conversation
…ates Same issue as dvwa in #110. These apps run Apache/Tomcat behind the TLS-terminating ingress and emit absolute http redirects (e.g. beebox: https://host/bWAPP -> 301 http://host/bWAPP/). Since nexploit#5669 the crawler probes follow them, and with the cluster default ssl-redirect "False" the app is served over plain http, so discoveries get an http copy of part of the site. Plain-http entrypoints in the 11-24 discovery nightly: sqli 163 of 408, vulnlab 76 of 216, commix 46 of 303, beebox 23 of 361, altoroj 4 of 28. Add ingress.sslRedirect to simple-service 0.5.3 (default "False", no change for other charts) and set it to "True" for vulnlab, commix, beebox and altoroj; set nginx.org/ssl-redirect "True" in the sqli ingress. vulnlab moves from simple-service 0.0.1, commix from 0.5.0.
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
Same issue as dvwa in #110. These targets run Apache/Tomcat behind the TLS-terminating ingress and emit absolute http redirects, e.g. beebox (scan
5BdEyfjECTCQABX8T5ji82, test 8569):Since BrightSec/nexploit#5669 the crawler's OpenDir/Robots/Sitemap probes follow such redirects. The cluster sets
ssl-redirect: "False"globally (cluster-vulnerable-appscommon/f5-nginx-ingress), so the app is served over plain http, the listing links are http, and the discovery gets an http copy of part of the site.Plain-http entrypoints created in the 11-24 discovery nightly (crawler logs ingested via Engine-logs):
No http entrypoints for the ssti-suite targets, chaotic-shop, mock-subdomain-server, log4shell, xvwa and dvna.
What
simple-service0.5.3: new valueingress.sslRedirect, rendered asnginx.org/ssl-redirect(default"False", unchanged for other charts).sslRedirect: "True"forvulnlab(0.0.4, from simple-service 0.0.1),commix(0.0.8, from 0.5.0),beebox(0.0.9),altoroj(0.0.7).sqli(1.0.21):nginx.org/ssl-redirect: "True"in its own ingress template.Verification
helm lintandhelm template(v3.17.0) for all 5 charts; each rendersnginx.org/ssl-redirect: "True".Follow-up
The discovery counts of these targets were raised in engine-e2e #1515 partly because of the http copies and need recalibrating after release: beebox 31131, 7743, 8476, 8540, 8569; vulnlab 13098, 31029, 31130, 31137; sqli 27682; commix 8469; altoroj 33836.