Blind XSS in an internal Google Service via the Server header
The author placed an XSS payload in the HTTP Server response header of their domains, which was later rendered as HTML by an internal Google tool called GodCluster. An attacker could have executed JavaScript in the context of that internal tool, potentially accessing limited SEO-related information about domains in Google's search index.
websecblog.com
Published on websecblog.com
A long time ago, I put an XSS payload in the HTTP Server response header on all of my self-hosted domains. Years of messing around with XSS has taught me that any public plaintext data will eventually be rendered as HTML by someone.
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 internal tool rendered the Server header value as HTML without sanitising it, allowing script execution.
Impact
It could have allowed an attacker access to limited SEO-related information about domains in Google's search index.
What the attacker needed
Control of a domain's Server header; victim visits a crafted URL
How it was found
- Set an XSS payload in the HTTP Server response header of a self-hosted domain.
- Enter that domain into the internal Google tool GodCluster.
- The tool displays the Server header as HTML, executing the payload.
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 Server header is a small piece of text that a web server sends back to identify itself. If a website displays that text without cleaning it, any code hidden in it can run in the viewer's browser. Here, an internal Google tool showed the header as active HTML, so the author's hidden code could run inside Google's own tool.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.