Skip to content
XSS Write-up Beginner

Cracking ATO via Email HTML Injection

The help-desk ticket form reflected user-supplied subject text into notification emails without sanitising HTML, so an attacker could inject a fake login form into emails sent to a victim. If the victim entered credentials, they were sent to the attacker's server, allowing account takeover.

dsmodi484 Follow

Published on medium.com

Hello hackers, today in this write-up I am going to share how I find HTML injection in email in one of the self hosted target. And to show impact I chained it to ATO.

cryptoshant🇮🇳, 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 application inserted the ticket subject into HTML emails without encoding or sanitising it, so markup was rendered by the email client.

Impact

An attacker could steal a victim's credentials through a fake login form in a legitimate email, leading to account takeover; the report does not mention any defence that limited the attack.

What the attacker needed

Access to the ticket submission form; victim's email address; victim opens the email and submits the form

The fix

The company said it already knew about the issue and was working on a fix, so the report does not describe the exact remediation.

How it was found

  1. Find the help-desk subdomain that offers a ticket submission form.
  2. Fill in the requester email with the victim's address and put HTML markup in the subject field.
  3. Submit the ticket so the notification email is generated.
  4. The victim receives the email containing the injected HTML, such as a fake login form.
  5. When the victim submits the form, their credentials are sent to the attacker's server.

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 help-desk page let people type a ticket subject, and that text was placed into emails without cleaning it. Because the text was treated as web page code, an attacker could put a fake login box in the email. A victim who typed their password there sent it straight to the attacker.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by dsmodi484

View all

8 more disclosed reports, best first.

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.