Skip to content
XSS Write-up Intermediate

Duplicate CSRF… Leads to $$

A self-XSS vulnerability in a user settings page could be exploited via a crafted link to change a victim's email address, leading to account takeover. The report was initially marked as a duplicate CSRF but later recognised as a more severe issue.

shellbreaker Follow

Published on shellbreaker.medium.com

Hey everyone, Bhavesh aka Shellbreaker here! Cybersecurity is my passion, both at work as a security engineer and after hours as a bug bounty hunter.

Bhavesh aka Shellbreaker, on shellbreaker.medium.com

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 application allowed a self-XSS in a settings page and had a password-less email change feature, which together enabled account takeover.

Impact

An attacker could change any user's email address, leading to account takeover.

What the attacker needed

Victim clicks a link

How it was found

  1. The attacker crafts a malicious link that exploits the self-XSS.
  2. The victim clicks the link, which runs the self-XSS and changes the victim's email address.

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.

This is about a self-XSS, which normally only affects the person who runs the code. But here, an attacker could trick someone into clicking a link that runs the code and changes their email, letting the attacker take over the account.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.