Skip to content
XSS Write-up Beginner

XSS on sony Subdomain

A reflected cross-site scripting flaw existed on a Sony subdomain because the page echoed two URL parameters back into the response without sanitising them. An attacker could craft a link that runs script in a victim's browser in the context of that site.

Gökhan Güzelkokar Follow

Published on medium.com

Hi guys. This is my first bug bounty writeup.

Gökhan Güzelkokar, on 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 page reflected user-supplied URL parameters into the HTML response without encoding or validating them.

Impact

An attacker could run script in a victim's browser on the Sony subdomain, which could be used to act as the user or steal data from that origin.

What the attacker needed

Victim clicks a crafted link; target page reflects URL parameters

How it was found

  1. Enumerate subdomains of the target domain using certificate transparency and subdomain tools.
  2. Probe the discovered hosts to find a live deep subdomain.
  3. Run a directory brute-force tool against the host to find pages.
  4. Visit the index page and notice it reflects two URL parameters.
  5. Insert a script-bearing value into a parameter and observe it execute.

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.

A web page took values from the address bar and put them straight into the page it sent back. If those values contain code that a browser runs, the page will execute it, which is called cross-site scripting. Someone could then send a crafted link so the code runs on the site's behalf in another person's browser.

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 Gökhan Güzelkokar

View all

3 more disclosed reports, best first.

More from Sony

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.