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.
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?
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
- Intercept the signup request and put HTML into the Name parameter.
- Send the signup email to a test inbox and confirm the HTML renders.
- Craft a link styled as a security alert button pointing to an external domain.
- Send the signup request to Burp Intruder and fire 20 concurrent requests at one test email.
- 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.