Skip to content
XSS Write-up Intermediate

Googleplex.com blind XSS

The invoice submission portal only checked the file type on the client side, so an attacker could upload an HTML file containing script instead of a PDF. When a Google employee later viewed the uploaded file, the script ran on the internal googleplex.com domain, allowing the attacker to access invoices and other data on that subdomain.

Thomas Orlita Follow

Published on websecblog.com

Google is an enormous company and it's dependent on thousands of suppliers to keep it running. And since it needs some way to keep track and pay their suppliers, it offers a public online tool where suppliers upload their invoices to Google.

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 server trusted the client-side MIME type check and served uploaded files with a user-controlled content type, so an HTML file was rendered as a web page instead of being treated as a PDF.

Impact

The attacker could access Google's invoices and other sensitive information on that subdomain, but Google stated that access to one googleplex.com app does not give access to other apps on the domain.

What the attacker needed

Access to the public invoice portal; victim (Google employee) opens the uploaded file; ability to intercept and modify HTTP requests

The fix

The vulnerability was fixed, and after the fix the script executed only on a sandboxed domain (storage.googleapis.com) where it poses no risk.

How it was found

  1. Enter a random purchase order number and search.
  2. Select an organisation and submit.
  3. Fill the invoice form and attach a PDF file.
  4. Intercept the upload request with a proxy and change the filename to .html, the content type to text/html, and the body to a script payload.
  5. Submit the invoice form.
  6. Wait for a notification that the script executed on googleplex.com.

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 website let people upload invoices, but it only checked the file type in the browser, not on the server. An attacker could change the file to an HTML page with a script and upload it. When an employee opened it, the script ran inside Google's internal site, letting the attacker see what that employee could see there.

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 Thomas Orlita

View all

7 more disclosed reports, best first.

More from Google

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.