#2 ANOTHER EASY BUG- HTML INJECTION
The author shows that HTML entered into the first and last name fields during account creation is rendered as markup in the confirmation email rather than being escaped. An attacker could inject HTML into emails sent to a victim, potentially defacing the message or embedding links to malicious sites.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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 name fields are inserted into the email template without HTML-encoding, so markup is rendered instead of displayed as text.
Impact
An attacker could defame the company or redirect recipients to malicious or fake sites to steal credentials, though the text only demonstrates rendered markup in an email.
What the attacker needed
Ability to register an account; victim receives the email
The fix
Input should be HTML-encoded when placed into the email template, rather than blocking special characters in the name fields.
How it was found
- Go to the target's account creation page.
- Enter an HTML heading and line-break payload in the first and last name fields, fill in the rest and submit.
- Check the confirmation email: if the markup renders, HTML injection is present.
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 shows text you typed, it should display it as plain text, not as instructions for the browser. Here the site put the name straight into an email as HTML, so tags like a heading were drawn instead of shown. That lets someone make the email look different or add links to other sites.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.