Skip to content
XSS Disclosed report Intermediate

Cross Site Scripting

A reflected cross-site scripting flaw existed on a login page, where a crafted URL parameter was inserted into the page without proper sanitisation. An attacker could run arbitrary JavaScript in a victim's browser, but only in Firefox and only if the victim pressed a specific key combination.

prakhar0x01 Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in 2 days
  • Fixed in 23 days
  • Disclosed after 41 days

Hii Team,

Through researching your asset, I found a XSS vulnerability at www.███.████████.

The only concern is that it only works in the Firefox browser.

Impact

An attacker could execute arbitrary javascript in the client browser.

System Host(s)

www.███.██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

1 - Open Firefox browser. 2 - Navigate to https://www.██████.███████/852585B6003EBA25/Login.html?open&ErrMsg=invalidlogin%22%20test=%22X%22%20onclick=%22confirm(%27H4CKED%20BY%20PRAKHAR0X01%27) 3 - Press : ALT+SHIFT+X on Windows/Linux, and on OS X, it’s CTRL+ALT+X.

NOTE: we need to convince the user to press a specific key combination. In Firefox on Windows/Linux, it’s ALT+SHIFT+X, and on OS X, it’s CTRL+ALT+X.

███████

Suggested Mitigation/Remediation Actions

  • Sanitize the input effectively.

The original report as published on HackerOne, by prakhar0x01. 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 login page reflected a URL parameter into the HTML without sanitising it, allowing an event handler to be injected.

Impact

An attacker could execute arbitrary JavaScript in the victim's browser, but only in Firefox and only if the victim pressed a specific key combination.

What the attacker needed

Victim uses Firefox; victim opens a crafted link; victim presses a specific key combination

How it was found

  1. Open the Firefox browser.
  2. Navigate to the crafted login URL containing the malicious parameter.
  3. Press the key combination ALT+SHIFT+X on Windows/Linux or CTRL+ALT+X on OS X.

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.

Cross-site scripting (XSS) is when a website puts user-supplied text into a page without cleaning it, so an attacker can sneak in code that runs in the visitor's browser. Here the attacker had to trick the victim into opening a special link and then pressing a keyboard shortcut, and it only worked in Firefox.

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 prakhar0x01

View all

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