Skip to content
XSS Write-up Beginner

From P4 to Critical: How I Weaponized target.com’s Email Infras

The signup form's Name field was inserted into automated emails without HTML encoding, allowing an attacker to inject a styled link to an external site. Because the signup endpoint also lacked rate limiting, an attacker could automate many requests and send convincing phishing emails from the company's own mail servers.

Vanshrathore Follow

Published on vanshrathorebughunter.medium.com

In the world of bug bounty hunting, single vulnerabilities often appear low-impact on their own. An HTML injection that only affects an email template?

Vanshrathore, on vanshrathorebughunter.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

Impact

An attacker could send convincing phishing emails from the company's legitimate mail servers, bypassing spam filters, and at scale could get the domain blacklisted, causing a denial of service for legitimate transactional email.

What the attacker needed

Access to the public signup form; ability to send many requests

The fix

The company should HTML-entity encode all user input in email templates, add tiered rate limits per IP and per email address on unauthenticated endpoints, and deploy CAPTCHA bot protection on the signup page.

How it was found

  1. Intercept the signup request and put HTML into the Name parameter.
  2. Send the signup email to a test inbox and confirm the HTML renders.
  3. Craft a link styled as a security alert button pointing to an external domain.
  4. Send the signup request to Burp Intruder and fire 20 concurrent requests at one test email.
  5. Observe that every request returns 200 OK and the inbox receives 20 identical emails.

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.

When you sign up, the site puts your name into a welcome email. If the site does not clean that name first, someone can put a fake 'click here' link in the name, and the email will show it as a real button. The site also let the same person sign up many times quickly, so they could send that fake email to lots of people automatically.

What is XSS?

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

More by Vanshrathore

View all

4 more disclosed reports, best first.

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.