Overview
The support ticket form reflected unsanitised HTML into outbound emails, so an attacker could send emails that appeared to come from the company's support team to any external address. This enabled phishing, spoofing and spam.
medium.com
Published on medium.com
While testing a private program on the Bugcrowd platform, I discovered a P3 HTML Injection vulnerability in the support/submit-ticket/ endpoint. This flaw allowed me to inject arbitrary HTML into the support ticket form, which was then reflected in outbound emails sent by the system.
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 ticket description field was not sanitised or output-encoded before being inserted into outbound emails.
Impact
Attackers could send phishing emails that appeared to come from the company's trusted domain to any external address, and could also use the system for spam.
What the attacker needed
Access to the support ticket form; no account needed
The fix
The issue was fixed by sanitising input, encoding output, blocking external HTML in emails and validating email destinations.
How it was found
- Go to the support ticket submission form.
- Enter a target email address.
- Put HTML into the description field.
- Submit the ticket.
- Check the email received at the target address for the injected content.
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 type something into a web form, the site should treat it as plain text, not as instructions. Here, the site copied whatever was typed into an email it sent out, so an attacker could add a clickable link that looked like it came from the company. That lets them trick people into visiting a fake login page.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.