Reflected Cross site scripting on reddit website (bounty awards $5000)
A reflected cross-site scripting vulnerability existed on the Reddit email verification page, where a crafted URL containing a script payload would execute when the user clicked the verify email button. An attacker could use this to steal cookies, sessions, or perform other malicious actions.
Published on jjainam16.medium.com
Hello, Hunters. I know You are here because you are struggling or want to advance in your career.
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 verification page reflected part of the URL path into the page without proper output encoding, allowing script execution when the verify button was clicked.
Impact
An attacker could steal cookies and sessions, download malware, send custom requests, or redirect users to a fake site, though the text does not specify any defence that limited the exploit.
What the attacker needed
A free account; victim clicks a crafted link; victim clicks verify email
How it was found
- Visit the Reddit website and register an account.
- Receive an email verification link on the registered email.
- Copy the link into the browser and append a script payload after /Verification.
- A pop-up appears with options to verify email or cancel.
- Click on verify email and the XSS payload executes.
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 scripting (XSS) is a bug where a website shows text from the web address without cleaning it first, so an attacker can put a small program (script) in the link. When a victim clicks the link and then clicks a button on the page, that script runs in their browser as if it came from the real site. This lets the attacker act as the victim, for example by reading their login cookies.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.