Skip to content
XSS Write-up Beginner

How I Earned €150 in 2 Minutes | HTML injection in email

A feedback form on a website accepted HTML in a message field and embedded it into emails sent to a chosen address. An attacker could send emails from the official address containing arbitrary HTML, such as an image, which could be used for phishing.

Thillai Raj Follow

Published on medium.com

Bounty$150 View original

Hello all, hope you’re OK. Our journey today is about how I found HTML Injections in email a bug bounty program in just a few minutes with a cool technique.

cyber_catz, on 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

Root cause

Likely the feedback message was inserted into the outgoing email without sanitising or validating the input.

Impact

An attacker could send emails from the official address containing arbitrary HTML, which could be used for phishing and trick users into giving away logins.

What the attacker needed

Access to the feedback form; victim email address

How it was found

  1. Open the website and find the feedback pop-up.
  2. Fill in the form, put HTML in the feedback field and enter a victim email address.
  3. Send the form and check the victim's inbox to see the HTML rendered.

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 feedback form let people type HTML, the code that formats web pages, into a message. The site put that code into an email without cleaning it, so the email showed whatever the sender wanted, like a picture. Because the email came from the company's real address, it could be used to trick people.

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.