Skip to content
XSS Disclosed report Beginner

Reflected XSS in https://██████████ via "████████" parameter

A URL parameter on the site was not properly escaped when it contained URL-encoded characters, allowing injected markup to break out of a script context. An attacker could run arbitrary JavaScript in a victim's browser, potentially stealing session cookies or acting as the victim.

nirajgautamit Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 53 days
  • Disclosed after 57 days

Hello Security Team, I would like to report the XSS vulnerability on your system. The ██████████ parameter is not escaped properly for URL encoded values.

██████

Impact

An XSS attack allows an attacker to execute arbitrary JavaScript in the context of the attacked website and the attacked user. This can be abused to steal session cookies, perform requests in the name of the victim, or for phishing attacks.

System Host(s)

█████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

Visit the following POC link: https://█████████/█████████CE399%22%3E%3C/script%3E%3Cimg%20src=x%20onerror=alert(document.domain)%3E&int_crse_eff_acad_yr=2002&int_crse_eff_term=4&sbjct_srch=true&sbjct_txt=the

Suggested Mitigation/Remediation Actions

Sanitize the input on that parameter

The original report as published on HackerOne, by nirajgautamit. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute arbitrary JavaScript in the context of the site and the victim, which could be used to steal session cookies, make requests as the victim, or run phishing attacks.

What the attacker needed

Victim clicks a crafted link

The fix

The parameter should be sanitised.

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 report has not been written yet. The Original tab links to the source.

When a website puts user-supplied text into a page without cleaning it, an attacker can slip in their own code. Here a URL-encoded value in the address bar was not escaped, letting the attacker inject markup that runs JavaScript. That lets the attacker's code run as if it came from the site itself.

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 nirajgautamit

View all

2 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.