Skip to content
SSRF Disclosed report Intermediate CVE-2021-22970

SSRF - pivoting in the private LAN

The remote file upload feature allowed fetching files from arbitrary URLs, including private IP addresses, with only weak checks on the response code and file extension. An attacker could use this to read internal web applications and potentially exploit them via GET requests.

adrian_t Follow

Originally disclosed on HackerOne

  • Triaged in 4 days
  • Fixed in 31 days
  • Disclosed after 14 months

The upload from remote servers features allows me to perform SSRF attack on the private LAN servers.

this features checks the following

  • http response code needs to be 200 - easy, a non issue for attackers really
  • checks the file exension (can be bypassed with something like http://192.168.1.148/index.php/test.png - anything after index.php/ is ignorred and I control the file extension as well)
  • some checks are performed on the IP, but any public and PRIVATE ips are allowed

I can read web apps from the internal network, fingerprint them and exploit them (using GET only exploits).

This is how I've managed to read an phpinfo file from my local LAN:

http://192.168.1.157/info.php/test.html

The file is fetched, saved by the CMS locally (or S3) and then the output can be downloaded by the attacker as you can see in the attached screenshots.

ps: crayons

Impact

An attacker can pivot in the private LAN and exploit local network apps.

Attachments

ssrf_file_dld.png
ssrf_file_dld.png From the original on HackerOne
ssrf_file_dld2.png
ssrf_file_dld2.png
ssrf_private_lan.png
ssrf_private_lan.png

The original report as published on HackerOne, by adrian_t. 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 remote upload feature only checked the HTTP response code and file extension, and allowed private IP addresses without proper validation.

Impact

An attacker could pivot into the private LAN and exploit local network applications, though only via GET-based exploits.

What the attacker needed

Access to the remote upload feature

How it was found

  1. Use the remote upload feature with a URL pointing to an internal IP address.
  2. Bypass the file extension check by appending a path like /test.png after the target file.
  3. The server fetches the internal file and saves it locally or to S3.
  4. Download the saved file to read the internal content.

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 let it download files from other servers. It didn't properly check where those servers were, so someone could make it download files from computers inside the company's private network, which are normally not reachable from the internet. This let the attacker see internal web pages and possibly attack them.

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 adrian_t

View all

2 more disclosed reports, best first.

More from Concrete CMS

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.