Skip to content
XSS Write-up Beginner

One More Easy Bug | HTML Injection

The article describes testing account registration name fields for HTML injection, where injected markup is rendered in the resulting email. If the markup renders rather than appearing as plain text, an attacker could inject content into emails sent by the site.

kumawatabhijeet2002 Follow

Published on medium.com

🔥Free Article Link: Click Here

Abhijeet kumawat, 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 application stores the name fields and inserts them into the email body without encoding or sanitising them.

Impact

Injected HTML could be used for defamation, phishing redirects or fake login pages in emails, though the article only describes these as potential risks.

What the attacker needed

Target sends a registration email; attacker can submit the signup form

How it was found

  1. Go to the target's account creation page.
  2. Put an HTML heading tag into the first name and last name fields.
  3. Fill in the remaining details and submit the form.
  4. Check the email received and see whether the markup renders or shows as plain text.

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 means a website takes text you typed and puts it into a page or email without cleaning it, so the browser treats parts of it as formatting or code. Here the tester put simple formatting tags into the first and last name fields and checked whether the confirmation email showed big bold text instead of the literal tags. If it renders, the site is trusting user input too much.

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 kumawatabhijeet2002

View all

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