Account Takeover Via Reflected XSS
A news platform reflected user input in its search endpoint without proper encoding, allowing script to run in a victim's browser. Combined with a link to an external logging service, the author claims this could steal a victim's session and lead to account takeover.
Published on medium.com
I’m Mahmoud Farag — a security researcher and bug hunter on YesWeHack and Intigriti.
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 search endpoint echoed the user-supplied parameter into the page without output encoding or input sanitisation.
Impact
The author claims the reflected XSS could lead to account takeover and session theft, but only if the victim's session was readable by the injected script.
What the attacker needed
Victim clicks a crafted link; session readable by script
How it was found
- Search for subdomains of the target program.
- Review each site and the services it offers.
- Find a site still running outdated services.
- Look for input points and test XSS payloads until one executes.
- Use a parameter-discovery tool to find injectable parameters.
- Send the crafted link to a victim so the logging service captures their session.
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.
A reflected cross-site scripting (XSS) bug means a website takes something you type or put in a link and shows it back on the page without cleaning it up. If that input is a small script, the victim's browser runs it as if the site itself wrote it, so the script can read things like the victim's session cookie. Here the author sent a crafted link to a victim and used a third-party service to collect whatever the script could see.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.