SSRF via webhook
The account webhook feature allowed requests to internal URLs, including the EC2 metadata endpoint. An attacker could verify the existence of the metadata service and enumerate internal endpoints.
- Triaged in 20 hours
- Fixed in 21 days
- Disclosed after 22 days
Hi,
There exists an SSRF vulnerability with the account webhook feature, allowing an attacker to verify the existence of the EC2 metadata url and enumerate URL's.
POC:
- Create a webhook at https://app.mixmax.com/dashboard/settings/rules with url
http://169.254.169.254/latest/meta-data/. - Trigger this webhook by sending/receiving an email. Wait a few hours.
- Note that an email is not sent saying the webhook failed. I tried for other internal urls such as 'http://localhost', but they sent a failure email, indicating that
http://169.254.169.254/latest/meta-data/is open to the webhook. - In addition to verifying that this endpoint exists, an attacker could enumerate endpoints on this domain. For example, an attacker could enumerate MAC addresses at
http://169.254.169.254/latest/meta-data/network/interfaces/macs/xx:xx:....
Suggested fix:
Blacklist the AWS metadata url and any other sensitive internal urls.
Thanks.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the webhook feature did not validate or restrict the destination URL, allowing requests to internal IP addresses such as the cloud metadata endpoint.
Impact
An attacker could confirm the cloud metadata service was reachable and enumerate internal endpoints, though the report does not show retrieval of credentials or other sensitive data.
What the attacker needed
An account with webhook access; ability to send or receive email
The fix
The reporter suggests blacklisting the AWS metadata URL and other sensitive internal URLs.
How it was found
- Create a webhook with a URL pointing to the EC2 metadata endpoint.
- Trigger the webhook by sending or receiving an email and wait.
- Observe that no failure email is sent for the metadata URL, unlike other internal URLs.
- Enumerate further endpoints under the metadata path, such as network interface MAC addresses.
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 report has not been written yet. The Original tab links to the source.
A webhook is a feature that sends a request to a URL you provide when something happens. Here, the server made that request to internal addresses that normal users cannot reach, which is called server-side request forgery (SSRF). This let the attacker check whether an internal cloud metadata service was reachable.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.