Location Owned — WAF Bypass via Misconfiguration
A PHP login page behind Cloudflare used the Location header to redirect users, and the author found that injecting two path segments plus a payload caused the payload to be reflected in the page. The text claims this led to unexpected functionality appearing, but does not clearly show script execution or a concrete attacker outcome.
medium.com
Published on medium.com
Hello everyone, this article will show how the threat hunting process that earned me the title of Honored as DoD Researcher of the Month by the Department of Defense Cyber Crime Center (DC3) took place, and how the exploitation process was carried out through manipulation of the HTTP Location header.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
The text claims the payload was reflected and unexpected functionality appeared, but does not demonstrate script execution or a clear attacker capability, and Cloudflare blocked deeper traversal attempts.
What the attacker needed
Target runs PHP behind Cloudflare; attacker can craft URL path segments
How it was found
- Review the login page and note it redirects via the Location header after a correct password
- Test open redirect and path traversal by adding path segments to the URL
- Observe that two levels redirect back to index.php and three levels trigger a Cloudflare Bad Request
- Inject a payload into two empty path parameters and append two more segments
- Observe the payload reflected in the page
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a web page sends you to another page, it uses a 'Location' header to say where to go. The author tried putting extra path pieces and some HTML into that redirect, and the page showed the HTML back. Showing input back is risky because it can let an attacker run their own code in a victim's browser, though this write-up does not fully prove that happened.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.