research
The Google Cloud Monitoring uptime check feature allowed an attacker to bypass IP address restrictions by using the address [redacted], which resolved to localhost, enabling server-side requests to internal services. By matching response content, an attacker could extract information such as SSH banners from the local machine.
Published on omespino.com
Hi everyone It’s been a while since my last post, but I’m back, I want to tell you a very short story about one of my last bugs, and how I managed to bypass some Google Cloud Monitoring protections to achieve an SSRF
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 IP address filter did not block the special address [redacted], which on the server resolved to localhost, allowing server-side requests to internal services.
Impact
An attacker could perform server-side requests to localhost, potentially extracting sensitive information such as service banners, though the report only demonstrates reading an SSH banner.
What the attacker needed
Access to Google Cloud Monitoring uptime check feature; ability to create an uptime check
The fix
The issue was fixed by Google, likely by blocking the [redacted] address in the IP filter.
How it was found
- Go to the Google Cloud Monitoring uptime page and click 'CREATE UPTIME CHECK'.
- Set the target type to TCP, hostname to [redacted], and port to 22.
- Enable content matching and set the expected response content to an SSH banner string.
- Click 'TEST' to send the request.
- Observe the response to determine if the content matched, indicating a successful request to localhost.
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 way to trick a Google Cloud service into making requests to its own internal network. The service was supposed to block requests to private addresses like [redacted], but the address [redacted] was not blocked and ended up reaching the local machine. By checking whether the response contained certain text, an attacker could learn what services were running on that internal machine.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.