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!
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
- Log in to the account on the target site.
- Go to the project settings page.
- Change the project name to an HTML image payload.
- Send an email invitation to a controlled address.
- 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.