*CSRF with Broken Referer Validation*
The email change functionality was vulnerable to CSRF because its Referer validation could be bypassed. An attacker could host a crafted page that, when visited by an authenticated victim, changed the victim's email address.
Published on meetcyber.net
This lab demonstrates a Cross-Site Request Forgery (CSRF) vulnerability caused by an ineffective Referer-based validation mechanism. However, flaws in the validation logic allow attackers to bypass this protection and submit forged requests from an external website.
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
Root cause
Likely the Referer validation only checked whether the Referer contained the target domain, allowing a bypass by placing the domain in the URL path.
Impact
An attacker could change an authenticated victim's email address by convincing them to visit a malicious page.
What the attacker needed
Victim logged in; victim visits attacker page
How it was found
- Log in to the target application.
- Use the exploit server to host an HTML page that performs a CSRF attack.
- Deliver the exploit to the victim.
- The victim visits the exploit page and the email address is changed.
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.
Cross-Site Request Forgery (CSRF) is when a malicious website tricks your browser into sending a request to another site where you are logged in. Here, the site tried to check where requests came from using the Referer header, but the check was flawed, so an attacker could still make your browser change your email address.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.