Skip to content
XSS Disclosed report Beginner

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

A hidden parameter on an authentication page was reflected into the page source without sanitisation, so a crafted link could run attacker-supplied script in the victim's browser. An attacker could use this to execute malicious JavaScript, phish or deface the page.

supr4s Follow

Originally disclosed on HackerOne

  • Triaged in 40 hours
  • Fixed in 14 months
  • Disclosed after 14 months

Hi everyone :)

I found a Reflected XSS on https://███████ via hidden parameter "████████" on the following authentication page : https://███████/██████████

Steps To Reproduce:

  • Use your favorite web browser
  • Go to :
https://███████/███████&███=TEST%22%3E%3Cscript%3Ealert(%27Reflected%20XSS%27)%3C/script%3E

An XSS is triggered !

The initial page was https://█████████/█████████

With a little research, you can find a hidden parameter "████████" which is directly reflected in the source code without sanitize user entries. Then just close the tag and inject our malicious code.

Supporting Material/References:

Work on every browser (Firefox, Chrome ..)

Suggested Mitigation/Remediation Actions

  • Never trust user inputs, and therefore sanitize them.
  • If the parameter "███" is useless in this page and in the authentication process, then it should be deleted.

Impact

The damages of a reflexive XSS flaw are numerous: executing malicious javascript code, phishing, defacing ... We can also inject HTML code and mislead the user when displaying the web page.

From OWASP :

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.

The original report as published on HackerOne, by supr4s. 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 hidden parameter's value was written into the HTML response without output encoding, allowing the injected markup to break out of its context.

Impact

An attacker could run malicious JavaScript in a victim's browser, enabling phishing, page defacing or misleading content, and the report states it works in every browser tested.

What the attacker needed

Victim clicks a crafted link

The fix

User input should be sanitised or output-encoded, and the unused parameter should be removed from the page if it serves no purpose.

How it was found

  1. Open a web browser.
  2. Visit the authentication page with the hidden parameter set to a test value containing a script payload.
  3. Observe that the script executes in the browser.

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.

Some web pages take a value from the address bar and paste it straight into the page. If that value is a piece of code rather than plain text, the browser runs it as if the site itself had written it. This is called reflected cross-site scripting, and it lets an attacker make a trusted site deliver their code to a visitor.

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 supr4s

View all

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