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.
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.
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
- Find the help-desk subdomain that offers a ticket submission form.
- Fill in the requester email with the victim's address and put HTML markup in the subject field.
- Submit the ticket so the notification email is generated.
- The victim receives the email containing the injected HTML, such as a fake login form.
- 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.