Skip to content
SSRF Disclosed report Beginner

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.

cablej Follow

Originally disclosed on HackerOne

  • 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:

  1. Create a webhook at https://app.mixmax.com/dashboard/settings/rules with url http://169.254.169.254/latest/meta-data/.
  2. Trigger this webhook by sending/receiving an email. Wait a few hours.
  3. 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.
  4. 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.

The original report as published on HackerOne, by cablej. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Create a webhook with a URL pointing to the EC2 metadata endpoint.
  2. Trigger the webhook by sending or receiving an email and wait.
  3. Observe that no failure email is sent for the metadata URL, unlike other internal URLs.
  4. 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.

More by cablej

View all

25 more disclosed reports, best first.

More from Mixmax

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.