Skip to content
XSS Write-up Intermediate

The XSS ( type II ) in Google Cloud Shell Editor

The Google Cloud Shell Editor error pages reflected unescaped error messages with a text/html content type, allowing a reflected XSS attack. An attacker could also leak the victim's editor hostname via an open redirect in the devshellProxyPath parameter, enabling a targeted attack.

Obmi Follow

Published on obmiblog.blogspot.com

Bounty$5,000 View original

The original lives on obmiblog.blogspot.com

We do not hold its text, 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 error page reflected user-supplied input without HTML-escaping it, and the redirect parameter was not properly validated.

Impact

An attacker could run JavaScript in the victim's Cloud Shell Editor context; the report does not describe further consequences.

What the attacker needed

Victim clicks a crafted link; attacker knows victim's editor hostname

How it was found

  1. Identify that error pages reflect unescaped error messages with text/html content type.
  2. Use the devshellProxyPath parameter to redirect to an attacker-controlled domain and leak the victim's editor hostname.
  3. Create a proof-of-concept page on the attacker's server that exploits the XSS using the leaked hostname.

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.

Some web pages show error messages that include text from the request without cleaning it. If that text contains code, the browser may run it as part of the page, which is called cross-site scripting (XSS). Here, an attacker could also find out the victim's unique editor address by abusing a redirect, then craft a link that runs code in the victim'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 Obmi

View all

3 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.