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…
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
- Open the college website and view the page source.
- Find the hidden UTM input fields in the HTML.
- 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.