Common Google XSS
The recovery ownership page on a Google apps toolbox site took the value of a 'continue' URL parameter and used it directly as the link target of a continue button, without validating the scheme. An attacker could craft a link with a javascript: value so that clicking the button ran attacker script in the victim's browser on the Google origin.
matan-h.com
Published on matan-h.com
When I was searching for a vulnerability in google DNS from Google Cloud, I came across this article by Julien Ahrens. The article is about an SSRF vulnerability in the Google website https://toolbox.googleapps.com, so I started researching this site.
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 application placed a user-supplied query parameter directly into the href of a link without validating or restricting its scheme.
Impact
Script ran on the Google origin with no CSP in place, so the attacker could also read and send data to external sites, for example the victim's public IP address.
What the attacker needed
Victim clicks a crafted link; victim clicks the continue button
How it was found
- Find the recovery app's sub-pages and their query parameters through search results
- Open the ownership page with a domain, email and continue parameter
- Replace the continue value with a javascript: value
- Load the page and click the continue button to trigger the script
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 web page can include a link whose address starts with 'javascript:' instead of 'https:'. When a user clicks such a link, the browser runs the code after that prefix as a script on the page's own site. Here the site copied a value from the address bar into a button's link without checking it, so a crafted link made the button run the author's script.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.