Google VRP SSRF in Google cloud platform stackdriver
A server-side request forgery (SSRF) vulnerability existed in Google Cloud Platform Stackdriver's source import feature, where the 'url' parameter in a request to list repository resources was not validated. An attacker could craft a URL that caused Google's server to send a request to an arbitrary host, including the victim's OAuth access token in the Authorization header, thereby stealing the token.
ronchan Uncategorized December 19, 2019 3 Minutes
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
Impact
An attacker could steal a victim's Bitbucket, GitLab, or GitHub access token, potentially leading to unauthorized access to the victim's repositories.
What the attacker needed
Victim has connected a Git provider to Stackdriver; attacker has a server to receive requests; victim clicks a crafted link
The fix
The vulnerability was fixed by adding validation, though the author notes the fix is not perfect.
How it was found
- The attacker sets up a server to receive HTTPS requests, such as Burp Collaborator.
- The attacker crafts a URL to the Stackdriver debug endpoint with the 'url' parameter pointing to the attacker's server.
- The attacker sends the crafted URL to a victim who has connected Bitbucket, GitLab, or GitHub to Stackdriver.
- The victim visits the URL, causing Google's server to make a request to the attacker's server with the victim's access token in the Authorization header.
- The attacker captures the access token from the incoming request.
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.
This report describes a server-side request forgery (SSRF) bug. In SSRF, an attacker tricks a server into making a request to a destination the attacker chooses. Here, the Google server fetched a URL supplied by the attacker and accidentally included the victim's secret access token, letting the attacker steal it.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.