How I got Reflected Cross Site Scripting(RXSS) on Manchester Metropolitan University
A URL parameter used for campaign tracking was reflected unescaped into an input tag on a university site. An attacker could craft a link that injects script into the page and runs it in a victim's browser.
Published on santoshdbobade.medium.com
Hello Everyone I hope you all are going well and good So this is my third blog regarding bug hunting
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 utm_compaign parameter was written into an HTML input tag without encoding, so quote characters could break out of the attribute.
What the attacker needed
Victim opens a crafted link
The fix
The issue was fixed by the security team after the report.
How it was found
- Collect URLs for the target and filter for ones containing utm_ parameters.
- Check which utm_ parameter values are reflected in the page.
- Notice the utm_compaign value is reflected inside an input tag.
- Craft a value that closes the tag and adds an image element with an event handler.
- Load the crafted URL in a browser and see the script run.
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.
Some web pages take values from the address bar and place them into the page. If the page does not clean those values, an attacker can put code in the link so the page runs it. That is called reflected cross-site scripting, and it lets the attacker run script as the site in the visitor's browser.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.