Skip to content

fix(e2e-targets): redirect http to https for targets with http duplicates - #113

Merged
mykhailo-bright merged 1 commit into
mainfrom
fix/e2e-targets-https-redirect
Nov 24, 2026
Merged

mykhailo-bright merged 1 commit into
mainfrom
fix/e2e-targets-https-redirect

Conversation

@mykhailo-bright

@mykhailo-bright mykhailo-bright commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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):

GET https://<host>/bWAPP  ->  301 Location: http://<host>/bWAPP/   (Apache: "Server at <host> Port 80")

Since BrightSec/nexploit#5669 the crawler's OpenDir/Robots/Sitemap probes follow such redirects. The cluster sets ssl-redirect: "False" globally (cluster-vulnerable-apps common/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):

Target (test) http EPs all EPs
sqli (27682) 163 408
vulnlab (31029) 76 216
commix (8469) 46 303
beebox (8569) 23 361
altoroj (33836) 4 28

No http entrypoints for the ssti-suite targets, chaotic-shop, mock-subdomain-server, log4shell, xvwa and dvna.

What

  • simple-service 0.5.3: new value ingress.sslRedirect, rendered as nginx.org/ssl-redirect (default "False", unchanged for other charts).
  • sslRedirect: "True" for vulnlab (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 lint and helm template (v3.17.0) for all 5 charts; each renders nginx.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.

…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.
Base automatically changed from fix/e2e-targets-do-not-disrupt to main November 24, 2026 13:38
@mykhailo-bright
mykhailo-bright merged commit 1405898 into main Nov 24, 2026
1 check passed
@mykhailo-bright
mykhailo-bright deleted the fix/e2e-targets-https-redirect branch November 24, 2026 13:39
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

Successfully merging this pull request may close these issues.

1 participant