Skip to content
XSS Write-up Beginner

How I Found Dom-XSS on My Collage Website !!!

Hidden UTM input fields on the college website reflected user-supplied values without sanitisation, allowing a DOM-based XSS. An attacker could inject script that executes in a victim's browser, potentially stealing cookies.

medium.com

Published on medium.com

My name is Jainil Borisagar and It’s my First Medium Story that i’m writing so let’s start , Firstly i’m completely new in Bug Bounty World and learning about all types of vulnerabilities and recently stumbled upon a DOM-based Cross-Site Scripting (XSS) vulnerability on my own college’s website. It was a thrilling…

Jainil Borisagar, 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 page took values from the URL and inserted them into hidden input fields without encoding or validation.

What the attacker needed

Victim visits a crafted URL

The fix

The vulnerability was fixed after being reported to the college IT department.

How it was found

  1. Open the college website and view the page source.
  2. Find the hidden UTM input fields in the HTML.
  3. Supply special characters in one of the UTM parameters and observe they are reflected unchanged.

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.

The website had hidden form fields that were meant to track marketing parameters. When the author put special characters into one of these fields, the site echoed them back into the page without cleaning them up. That let a script run in the browser, which is called cross-site scripting (XSS).

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

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.