The story of XSS that leads to ATO
A path-based reflected XSS in the user profile section allowed an attacker to change a victim's email address by exploiting a CSRF token, leading to account takeover. The attacker bypassed slash filtration by dynamically inserting a slash from an anchor tag's href attribute.
medium.com
Published on medium.com
One day, while reviewing the output of my recon machine (which uses various techniques to collect subdomains), I found a subdomain that didn’t appear in the results of common tools. This caught my attention, so I decided to investigate further.
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
An attacker could take over a victim's account by changing their email and resetting the password, with the severity rated as High (8.7 CVSS 3).
What the attacker needed
Victim clicks a link; attacker has an account
How it was found
- The attacker sends a malicious link to the victim.
- When the victim clicks it, their email is changed to the attacker's email.
- The attacker requests a password reset.
- The attacker now has full control over the victim's account.
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 report describes a cross-site scripting (XSS) bug where a malicious link could run code in a victim's browser. The attacker used that code to change the victim's email address to their own, then reset the password to take over the account. A filter blocked the slash character, but the attacker found a clever way to get a slash from the page itself.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.