Skip to content
XSS Write-up Beginner

My First Html Injection

The registration form allowed HTML tags in the first name and last name fields without validation. An attacker could inject HTML that would be stored and displayed, potentially enabling phishing or defacement.

Jody ritonga Follow

Published on systemweakness.com

Hello everyone! thankyou for spending your time reading my article, before we jumped into the story of my first HTML injection. Let me introduce myself.

Jody ritonga, on systemweakness.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 did not sanitise or validate user input in the name fields before storing and displaying it.

Impact

An attacker could inject HTML to perform phishing, defacement, or exfiltrate sensitive data, though the report does not demonstrate these beyond basic injection.

What the attacker needed

Ability to register an account

The fix

The report does not state a specific fix, but the author suggests implementing a policy to forbid special characters and using DOM purify.

How it was found

  1. Register a second account and observe the registration form.
  2. Enter HTML tags such as an image tag and a heading tag into the first name and last name fields.
  3. Submit the form and see the HTML rendered on the page.

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 lets you type HTML code into a form, and later shows that code as part of the page instead of plain text. This can let an attacker change how the page looks or add fake login forms to steal information.

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 Jody ritonga

View all

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