SSRF via 3d.cs.money/pasteLinkToImage
The pasteLinkToImage endpoint on 3d.cs.money did not validate the URL supplied in the link parameter, so the server made HTTP requests to any address an attacker chose. This allowed the attacker to use the server to send requests to internal and external hosts, enabling DDoS attacks and internal port scanning.
- Triaged in 3 days
- Fixed in 4 days
- Paid in 4 days
- Disclosed after 4 days
Summary:
SSRF via 3d.cs.money/pasteLinkToImage
The functionality fails to validate URL in link-parameter allowing attacker to create server-side request forgery attacks. As the server does a full HTTP-request, this can for example be used to:
- DDoS-attacks towards internal and external hosts.
- Portscan internal hosts.
Steps To Reproduce:
- Place proper cookies to the attached request.
- Place targeted URL in the link-parameter.
- Send the request and notice that the server sent a HTTP-request to the targeted host.
Supporting Material/References:
PoC-request:
POST /pasteLinkToImage HTTP/1.1
Host: 3d.cs.money
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:74.0) Gecko/20100101 Firefox/74.0
Accept: application/json, text/plain, */*
Accept-Language: fi-FI,fi;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/json;charset=utf-8
Content-Length: 82
Origin: https://3d.cs.money
Connection: close
Referer: https://3d.cs.money/
Cookie: INSERT_PRIME_COOKIES_HERE
{"link":"http:/INSERT_TARGET_URL_HERE"}
Impact
- DDoS-attacks towards internal and external hosts.
- Portscan internal hosts.
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 endpoint accepted a user-supplied URL and performed an HTTP request to it without validating or restricting the destination.
Impact
An attacker could use the server to send requests to internal and external hosts, potentially causing DDoS attacks and scanning internal ports.
What the attacker needed
Valid session cookies
How it was found
- Include valid cookies in the request.
- Set the link parameter to the target URL.
- Send the request and observe that the server makes an HTTP request to the target host.
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.
The website had a feature that took a link and fetched it on the server. Because it did not check where the link pointed, an attacker could make the server visit any address, including internal ones that are not normally reachable from the internet. This is called server-side request forgery (SSRF): the server is tricked into making requests on the attacker's behalf.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.