Skip to content
XSS Write-up Beginner

Exploiting thousands of Domains for XSS

A reflected XSS vulnerability existed on a GoDaddy file-sharing service page, allowing an attacker to execute JavaScript in a victim's browser. Because thousands of domains used the service via CNAME, many were affected.

Kailash Bohara Follow

Published on kailashbohara.com.np

Security engineer with 9 years of experience in penetration testing, security architecture, cloud security, zero trust implementation, and threat hunting.

Kailash Bohara, on kailashbohara.com.np

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 user-supplied input into the page without proper sanitisation, allowing script injection.

Impact

An attacker could execute JavaScript in the context of domains using the service, affecting many sites.

What the attacker needed

Victim visits a crafted URL; domain uses the vulnerable service via CNAME

The fix

The vulnerability was patched by GoDaddy, though the report does not specify how.

How it was found

  1. Open the subdomain files.example.com in a browser.
  2. Run a Burp Suite auto scan and use the reflector extension to see which inputs are reflected.
  3. Analyse the suspicious parameter and craft a payload that executes JavaScript.
  4. Confirm the XSS by loading the vulnerable URL.
  5. Check the CNAME of the subdomain to identify the service provider.
  6. Use reverse CNAME lookup to find other domains using the same service.

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 shows user input without cleaning it, so an attacker can sneak in JavaScript code that runs in other people's browsers. Here, a parameter on a file-sharing page reflected such code, and because many domains pointed to that same service, the bug affected many sites.

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 Kailash Bohara

View all

7 more disclosed reports, best first.

More from GoDaddy

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.