Skip to content
XSS Write-up Intermediate

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.

Thomas Orlita, on websecblog.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 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

  1. Set an XSS payload in the HTTP Server response header of a self-hosted domain.
  2. Enter that domain into the internal Google tool GodCluster.
  3. 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.

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.