Skip to content
XSS Disclosed report Beginner

Reflected XSS www.█████ search form

The search form reflected a user-supplied keyword parameter without proper sanitisation, allowing an attacker to inject a link with a JavaScript URL that executes when clicked. This could let an attacker steal cookies or modify page content, though the proof of concept only showed an alert popup.

Valerio brussani Follow

Originally disclosed on HackerOne

  • Triaged in 21 hours
  • Fixed in 35 days
  • Disclosed after 3 months

Description:

Reflected XSS vulnerabilities arise when the application accepts a malicious input script from a user and then this is executed in the victim's browser.Since the XSS is reflected, the attacker has to trick the victim into executing the payload, usually using another website. In this case, the vulnerable URL is ████ and the vulnerable parameter is the POST keyword parameter.

##Reproduction steps

1 - Perform a new search request and intercept the resulting request with a interceptor proxy (for example, using Burp). 2 - Use the following payload for the POST keyword parameter.

<a+href="ja%0A%0Dvascript:alert(document.domain)">Click</a>

The above payload also allows to bypass the WAF present on the server.

3 - A new link called "Click" will be shown on the resulting webpage. A click on the link will trigger the payload execution.

Impact

Depending on the severity of the vulnerability, user cookies could be stolen enabling an attacker to abuse accounts,or webpage content could be modified tricking users to surrendering their personal data, but possibilities are endless. In this case, my PoC shows an innocuous popup containing the execution scope of the vulnerability.

The original report as published on HackerOne, by val_brux. 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

Root cause

Likely the application failed to sanitise or encode the POST keyword parameter before reflecting it into the search results page.

Impact

An attacker could steal user cookies to abuse accounts or modify webpage content to trick users into surrendering personal data, though the proof of concept only demonstrated an alert popup.

What the attacker needed

Victim clicks a crafted link; attacker can send a POST request

How it was found

  1. Perform a new search request and intercept it with a proxy such as Burp.
  2. Replace the POST keyword parameter with a crafted link payload that also bypasses the WAF.
  3. Observe the new 'Click' link on the results page and click it to trigger the payload.

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 you type something into a search box, the website usually shows it back to you. Here, the site did not clean up special characters first, so an attacker could make the search results contain a clickable link that runs harmful code in your browser if you click it. This is called reflected cross-site scripting because the bad input bounces straight back to the victim.

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 Valerio brussani

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.