Skip to content
XSS Write-up Beginner

How A Simple Bug That Refused to Die, Paid Twice.

The email confirmation and password reset pages reflected a user-supplied email parameter without sanitisation, allowing an attacker to display arbitrary text on a legitimate domain. This could be used for social engineering, such as showing a fake security alert with a phone number.

infosecwriteups.com

Published on infosecwriteups.com

This write-up is for educational purposes only. All testing was conducted on authorized targets within the scope of a responsible disclosure or bug bounty program.

kjulius, on infosecwriteups.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 reflected the email query parameter into the HTML page without proper output encoding or validation.

Impact

An attacker could craft a link that displays a fake security message on the legitimate domain, potentially tricking users into calling a attacker-controlled phone number or taking other harmful actions.

What the attacker needed

Victim clicks a crafted link

The fix

The email confirmation endpoint was fixed after the first report, but the password reset endpoint was not; the fix should have been applied consistently to all similar endpoints.

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 website took text from the address bar and showed it on the page without cleaning it. An attacker could put a scary message there, like 'your account is compromised, call this number', and send the link to someone. Because the page is on the real company's website, the victim might believe the message.

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.