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.
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
- Identify that error pages reflect unescaped error messages with text/html content type.
- Use the devshellProxyPath parameter to redirect to an attacker-controlled domain and leak the victim's editor hostname.
- 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.