Skip to content
XSS Disclosed report Beginner

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

A hidden parameter on a guest TLS SSO page reflects user input into the HTML source without sanitisation, allowing an attacker to inject a script tag. An attacker could execute arbitrary JavaScript in a victim's browser by crafting a malicious URL.

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 "██████████".

Steps To Reproduce:

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

An XSS is triggered !

The initial page was https://██████/guest/tls_sso.php

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 reflected 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

The application reflects a hidden parameter into the HTML source without sanitising or encoding user input.

Impact

An attacker could execute malicious JavaScript, conduct phishing, deface the page, or inject HTML to mislead the user; the report states it works on every browser tested.

What the attacker needed

Victim clicks a crafted link

The fix

User input should be sanitised and the hidden parameter should be removed if it is not needed.

How it was found

  1. Open a web browser.
  2. Visit the crafted URL containing the hidden parameter with a script payload.
  3. The script executes and an alert box appears.

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 type in the address bar and puts it directly into the page without cleaning it first, an attacker can add their own code. Here, a hidden parameter was reflected into the page, so adding a script tag made the browser run the attacker's JavaScript. This is called reflected cross-site scripting (XSS).

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.