Skip to content
XSS Write-up Beginner

Stored HTML Injection — Email Invite Manipulation

The project name field allowed raw HTML to be stored and rendered directly in invitation emails sent to other users. An attacker could embed images or other HTML in emails, enabling phishing, brand spoofing, or spam filter evasion.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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

User-controlled project name data was inserted into invitation email templates without sanitisation or output encoding.

Impact

Attackers could embed phishing images or links in invitation emails, spoof official communication, and potentially evade spam filters, though modern email clients may limit complex HTML execution.

What the attacker needed

A user account on the platform; ability to create or edit a project; ability to send email invitations

The fix

The issue should be fixed by escaping or stripping HTML from user input, using context-aware output encoding, and whitelisting accepted characters in project names.

How it was found

  1. Log in to the account on the target site.
  2. Go to the project settings page.
  3. Change the project name to an HTML image payload.
  4. Send an email invitation to a controlled address.
  5. Open the received email and observe the image rendered inline.

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 a website puts user input into a page or email without cleaning it, the browser treats that input as code. Here, a project name could contain HTML, so an invitation email showed whatever the attacker put there, such as an image. This lets an attacker make official-looking emails that 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.