Bypassing Network Boundaries: Achieving Blind SSRF to Cloud Insta
The provisioning API accepted a webhook URL pointing to the AWS instance metadata service without validating it against internal IP ranges. An attacker could stage this URL and, if an inbound event triggered the webhook, the backend would request cloud credentials from the metadata endpoint.
During a targeted infrastructure assessment of a tier-one cloud communications provider, I identified a critical Server-Side Request Forgery (SSRF) vulnerability within their core provisioning API. The vulnerability stemmed from a failure to validate and sanitize user-supplied webhook URLs against internal network…
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 API did not validate or block user-supplied webhook URLs that resolve to internal or link-local IP addresses before saving them.
Impact
If triggered, the backend could fetch temporary IAM credentials from the metadata service, potentially leading to cloud environment compromise, though the author notes inbound triggers were disabled during testing.
What the attacker needed
A valid API token; a provisioned phone number; ability to send an SMS to trigger the webhook
The fix
The report recommends strict URL validation, network egress filtering, and enforcing IMDSv2; it does not state that a fix was applied.
How it was found
- Send a request to update a phone number's configuration with a webhook URL pointing to the cloud metadata endpoint.
- Observe that the API returns HTTP 200 OK and stores the webhook URL.
- Trigger the webhook by sending an SMS to the provisioned phone number (not performed due to trial restrictions).
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 webhook is a URL that a service calls automatically when something happens, like receiving a text message. Here, the service let users set any URL, including one that points to a special cloud address only the server itself can reach. That address hands out temporary passwords for the cloud account, so the server could be tricked into fetching them.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.