Skip to content
XSS Write-up Beginner

Got Easiest Bounty with HTML injection via email confirmation!

The site stored the user's name field as raw HTML and inserted it into the account confirmation email without encoding. An attacker could inject HTML tags into that email, breaking its layout and adding content such as images or links.

Shaurya Sharma Follow

Published on medium.com

“-Please Shaurya Sharma, validate your account through a link sent to xxxxx@mail [.] Com”

Shaurya Sharma, 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 name field was stored and rendered into the confirmation email without HTML encoding or sanitisation.

Impact

An attacker could inject arbitrary HTML into the confirmation email, which the author suggests could be used to mislead recipients, for example to request card details or unusual payments, though no real exploitation is shown.

What the attacker needed

A free account; attacker controls the name field; victim reads the confirmation email

How it was found

  1. Register an account with a normal name and a disposable email address.
  2. Receive the confirmation email and note that the name appears in it.
  3. Create another account, this time putting HTML markup in the name field.
  4. Request the confirmation email again and observe the injected markup rendered in the message.

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 you sign up, the site saves your name and later puts it into a confirmation email. Here it did not clean the name first, so anything typed in, including HTML (the code that builds web pages and emails), was placed straight into the message. That let the author change how the email looked and add their own content to it.

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 Shaurya Sharma

View all

2 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.