How_i_was_able_to_pawned_website_via_escilating_webcache deception to rce
A subdomain's login page lacked cache-control headers, allowing an attacker to trick an employee into visiting a crafted URL so the victim's authenticated page was stored in a shared cache and later retrieved by the attacker. The attacker then found a hidden Java file with a URL parameter, bypassed a WAF protocol filter with mixed-case HTTPS, and used remote file inclusion to read local files and achieve remote code execution.
hello folks ! here is my article of how i was able to exploit web cache deception to obtain rce :3 i was doing resarch on web cache deception and i decide to penetst it on real web then i found a website which was vulnerable to web cache deception attack ..before starting attack let’s clear doubt about web cache…
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
What the attacker needed
Employee email address; victim clicks a crafted link; attacker-hosted payload file
The fix
The report says the bug was patched, but does not describe the fix; it should be fixed by adding cache-control headers to authenticated responses and validating or restricting the file parameter to safe local paths.
How it was found
- Find a subdomain for employees and capture its login request, noting the absence of cache-control headers.
- Gather employee email addresses and send a crafted link ending in a static-looking path to trick an employee into opening it.
- Retrieve the cached authenticated page from the server to take over the account.
- Inspect the source of index.php and find a hidden Java file with a url parameter.
- Bypass the WAF's protocol filter by using mixed-case HTTPS and confirm open redirection.
- Host a payload on an attacker site and use the file parameter to fetch it, reading /etc/passwd and achieving RCE.
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.
Web cache deception is when a website's caching system stores a private page (like an account page) because the URL looks like a static file, letting someone else fetch that stored copy. Here the attacker sent an employee a link that made their logged-in page get cached, then read it to take over the account. Later, a file parameter on the site let the attacker make the server fetch and run a file from the attacker's own website, which is remote code execution.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.