HTMLI to ATO leads to $$$ bounty
The newsletter subscription form on a Samsung developer conference site did not sanitise the first and last name fields, so an attacker could inject HTML into the confirmation email. The injected HTML could render a fake login form that sent the victim's credentials to an attacker-controlled server, enabling account takeover.
medium.com
Published on medium.com
Hello Hackers, In this writeup I am going to discuss my recent finding on Samsung,like how I found the bug and as a award they awarded me $$$ for my finding. And this was my second bounty and it was my first bounty in dollars 🥳.
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 newsletter form did not sanitise or encode the first and last name fields before inserting them into the confirmation email.
Impact
An attacker could send a phishing email from Samsung's address containing a fake login form, and a victim who submitted it would hand over credentials, leading to account takeover.
What the attacker needed
Victim opens the confirmation email; victim enters credentials in the fake form
The fix
The form was fixed by whitelisting allowed characters and checking for dangerous characters on both the client and server sides.
How it was found
- Find the newsletter subscription form on the Samsung developer conference site.
- Enter an email address and put HTML markup in the first name and last name fields.
- Submit the form and receive the confirmation email.
- Observe that the HTML renders in the email, including a fake login form.
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.
HTML injection is when a website puts user-supplied text into a page or email without cleaning it, so the text is treated as code. Here the name fields ended up inside an email, letting the attacker add a fake login form. If a victim typed their password into that form, it went 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.