Skip to content
XSS Write-up Beginner

Discovering a Reflected XSS Vulnerability: My Journey into Microsoft’s Xbox.com

A reflected cross-site scripting flaw existed in the search query parameter on the main Xbox website. An attacker could craft a link that, when opened, would run script in the victim's browser session.

ibrahimxss Follow

Published on ibrahimxss.medium.com

One quiet afternoon, driven by curiosity and a passion for cybersecurity, I decided to explore the main domain of Xbox: https://www.xbox.com/. Little did I know, this exploration would lead to the discovery of a significant security vulnerability that could potentially impact numerous users.

xss0r, on ibrahimxss.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 search query parameter was reflected into the page without proper output encoding or sanitisation.

Impact

This could allow an attacker to run scripts in a user's browser session, potentially leading to session hijacking, data theft, or malicious redirections.

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Go to the main Xbox.com domain.
  2. Open the search page with an empty query parameter.
  3. Use the #xss0r tool to test the search field with many payloads.
  4. Observe that one payload executes and shows an alert with the document domain.

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 takes text from a link and puts it into the page without cleaning it first. Here, the search box on Xbox.com echoed back a specially crafted search term that the browser treated as code, so a malicious link could run a script in the visitor'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 ibrahimxss

View all

8 more disclosed reports, best first.

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.