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.
Originally disclosed on HackerOne
- 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.
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
- Open the Firefox browser.
- Navigate to the crafted login URL containing the malicious parameter.
- 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.