Email Content Html Injection
The first name field on the registration page accepted HTML, and the injected markup was rendered in the account confirmation email. An attacker could place a link in that email that leads the recipient to an attacker-controlled site.
medium.com
Published on medium.com
Bu yazıda Azərbaycanın ilk Bug Bounty platforması olan Qarabug-da tapdığım Email Content HTML Injection zəifliyi haqqında qısa məlumat verəcəm.
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 first name value was inserted into the confirmation email template without HTML encoding.
Impact
An attacker could send confirmation emails containing fake support links, which may trick recipients and could cause the domain to be marked as spam.
What the attacker needed
A free account; victim opens the confirmation email
The fix
The issue was fixed.
How it was found
- Open the registration page.
- Enter HTML markup in the first name field.
- Complete the form and create the account.
- Open the confirmation email and see the markup rendered in the first name.
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 what you typed into a page or an email without cleaning it first, your text can be treated as instructions for the browser instead of plain text. Here the first name field was placed into a confirmation email, so a link written in that field appeared as a real clickable link in the email. This lets someone send a convincing email that points to a site they control.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.