Skip to content
CSRF Write-up Intermediate

*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.

Bash Overflow Follow

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.

Bash Overflow, on meetcyber.net

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

  1. Log in to the target application.
  2. Use the exploit server to host an HTML page that performs a CSRF attack.
  3. Deliver the exploit to the victim.
  4. 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.

More by Bash Overflow

View all

35 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.