Skip to content
XSS Disclosed report Beginner

Reflected XSS on ███████ page

A page reflected user-supplied input from a POST parameter without sanitisation, allowing script execution in the victim's browser. The reporter notes it is self-XSS in practice but could be weaponised via a crafted link.

scraps Follow

Originally disclosed on HackerOne

  • Triaged in 39 hours
  • Fixed in 16 days
  • Disclosed after 26 days

Summary: The page at https://█████/NtMView.php is vulnerable to reflected cross-site scripting.

Description: The page takes a user input in the form of a drop down list, then uses that text in the resulting page ( ███████ ). An attacker can intercept the query to the page and insert an XSS payload, as shown in ██████████.

This input is then displayed back to the user, popping up the XSS payload ██████████. The XSS payload is actually inserted a number of times into the resulting HTML, which can be seen in ████████. This results in numerous pop ups to the user.

Step-by-step Reproduction Instructions

While intercepting requests with a proxy such as Burp, carry out the following steps

  1. Visit the page at https://██████/usnotice.php
  2. Select a value from the drop down list and press "View Now"
  3. Add an XSS payload to the POST parameters, eg, <script>alert('xss')</script>
  4. Observe on the next page the XSS pop-ups

Suggested Mitigation/Remediation Actions

Any user controlled input should be filtered by the application to remove special characters such as < and >, as well as special words such as script.

For further guidance, see: https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html

Impact

In this instance, the only person the XSS affects is myself, ie, Self-XSS. This could be weaponised to affect other users though, for example by being placed in a web form on an attacker controlled page, then tricking a user to click the link to visit the .mil page. An attacker who exploited this vulnerability could rewrite the contents of the page, potentially redirecting users to further malicious sites, or temporarily defacing the .mil page

The original report as published on HackerOne, by scraps. 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 echoed a POST parameter into the HTML response without output encoding or input validation.

Impact

In this instance the XSS only affects the person entering it (self-XSS), but it could be weaponised against other users via a crafted link, allowing page rewriting, redirects or temporary defacement.

What the attacker needed

Victim clicks a crafted link or submits a form; attacker can intercept and modify the request

The fix

Input should be filtered to remove special characters and words, following OWASP guidance.

How it was found

  1. Visit the notice page.
  2. Choose a value from the drop-down and submit the form.
  3. Intercept the POST request and replace a parameter with a script payload.
  4. Observe the script executing on the next page.

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 takes something you typed and puts it straight back into the page without cleaning it, an attacker can slip in code that the browser runs. Here the input came from a form field and was echoed back, so a script tag executed. The reporter says only the person entering it is affected unless tricked into clicking a prepared link.

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 scraps

View all

4 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.