Skip to content
XSS Write-up Beginner

2 Reflected XSS In Razer

Two reflected cross-site scripting flaws existed on Razer subdomains, where user-supplied input was echoed back into the HTML response without proper encoding. An attacker could craft a link that runs script in a victim's browser on the affected domains.

Mostafa Follow

Published on mostafa-mano.medium.com

My Name Is Mostafa I Am Working As information Security Engineer And My Part Time Doing Some Bug Hunting

Mostafa, on mostafa-mano.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application reflected request parameters into the HTML response without output encoding, allowing the injected markup to break out of the surrounding form.

Impact

An attacker could run script in a victim's browser on the affected Razer subdomains, though the text gives no detail on what that script could then do.

What the attacker needed

Victim opens a crafted link

The fix

The text says the issues were mitigated, but does not describe the fix; properly it should be fixed by encoding reflected output.

How it was found

  1. Look at reflected parameters on the drivers subdomain
  2. Notice a CSRF token reflected and commented in the HTML response
  3. Close the form tag and inject a script payload
  4. Send the crafted request and observe the script executing

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 write-up has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website puts text from a visitor back into its page without cleaning it, so that text can run as code. Here, a value in the web address was reflected into the page, letting an attacker make a link that runs their own script when someone opens it.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More from Razer

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.