GHSA-2MX8-9WW7-P27X
SSRF in GQL asset mutation - incomplete IP denylist + post-fetch validation
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-2MX8-9WW7-P27X divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
The GraphQL mutation `save<Volume>Asset(_file: { url: ... })` fetches an attacker-supplied URL server-side. The anti-SSRF logic introduced by prior advisories (GHSA-gp2f-7wcm-5fhx, GHSA-v2gc-rm6g-wrw9, GHSA-3m9m-24vh-39wx) is incomplete, so a GraphQL token scoped only to `volumes.<uid>:create` can:
- Read internal HTTP responses from any target whose IP address passes `validateIp()` but is not reachable by the attacker directly. `validateIp()` relies on `FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE`, which does not cover CGNAT `100.64.0.0/10` (RFC 6598) or NAT64 `64:ff9b::/96`. Requests to those ranges are accepted, and the response is saved as the asset, and the attacker downloads it — full content disclosure.
- Force internal GET requests to any host (RFC1918/loopback/metadata included). The only IP check runs in Guzzle’s `on_stats` callback, which fires after cURL has already connected and written the response body to disk. Rejection aborts the asset save, but the outbound request has already been issued.
- Blindly enumerate internal hosts/ports. The four distinct, client-safe error/success outcomes (returned even with `devMode` off) plus connect/timeout timing from an oracle for targets whose bodies are withheld.
This is a privilege-boundary violation: a token authorized only to create assets in one volume should not be able to drive arbitrary server-side HTTP requests or read internal services.
Impact
A low-privilege, asset-creation-only authorization is escalated into arbitrary outbound server-side requests and disclosure of internal HTTP content - a privilege/trust-boundary violation in native Craft code.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 4.18.2, 5.10.6 | — | — |
4.18.25.10.6Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-2mx8-9ww7-p27xLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
