Skip to content
XSS Write-up Beginner

From Zero to Bug Hunter: My First Real Vulnerability and Why You

The contact form's name field allowed HTML injection after a basic filter blocked script tags, letting the author inject markup that rendered on the page. The author claims they could have created a fake login form to steal an administrator's password.

Sukhveer Singh Follow

Published on sukhveersingh97997.medium.com

If you are reading this, you probably know me as a security researcher or a bug bounty hunter. But a few years ago, I was just a guy with a laptop, a lot of curiosity, and absolutely no idea where to start.

Sukhveer Singh, on sukhveersingh97997.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

Impact

An attacker could inject HTML into the page seen by staff, potentially showing a fake login form to capture an administrator's password, though the text only describes this as an intention, not a demonstrated theft.

What the attacker needed

Access to a contact form; staff view the submitted entry

How it was found

  1. Submit a name containing a script tag and observe the site rejects it as invalid characters.
  2. Submit a name containing a simple HTML heading tag instead.
  3. View the page after submission and see the heading rendered.

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.

A website took text a visitor typed into a contact form and put it straight into the page without cleaning it. That let the visitor add their own formatting or fake boxes to the page, which other people, including staff, would then see.

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 Sukhveer Singh

View all

1 more disclosed report, 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.