GHSA-C25F-HC8C-2JMW
Host header injection via SERVER_NAME fallback poisons SAML SP metadata, ACS and SLO URLs
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-C25F-HC8C-2JMW divulgada · CVSS 8 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
## Summary
Poweradmin builds the SAML SP `EntityId`, ACS and SLO URLs from `$_SERVER['SERVER_NAME']` when `interface.application_url` is unset (the default). Under the shipped FrankenPHP/Caddy Docker image and Apache with the default `UseCanonicalName Off`, `SERVER_NAME` comes from the client `Host` header, so the pre-auth `GET /saml/metadata` advertises attacker-chosen endpoints.
## Root Cause
The CVE-2026-54588 fix (introduced in v4.2.4 / v4.3.3) swapped `HTTP_HOST` for `$_SERVER['SERVER_NAME']` in the host-fallback path. This sink reads `SERVER_NAME` raw, with no hostname check or allowlist:
- `SamlConfigurationService::getBaseUrl()` (`SamlConfigurationService.php:179`) — builds SAML `EntityId`/ACS/SLO. Reached pre-auth via `GET /saml/metadata`.
`interface.application_url` defaults to `''` (`settings.defaults.php:149`), so the safe branch is skipped in every sink. There is no global Symfony `trusted_hosts`/`trusted_proxies` guard, and `BaseController`'s host allowlist is `$allowedHosts = []` (disabled).
Deployment host-source (verified): FrankenPHP `cgi.go` sets `$_SERVER['SERVER_NAME']` from `net.SplitHostPort(request.Host)` = the client `Host` header; the shipped `Dockerfile` bakes a hostname-less Caddy site block (`:{$SERVER_PORT:80}`) so nothing pins it. Apache with the documented-default `UseCanonicalName Off` likewise derives SERVER_NAME from the client Host. (Stock nginx from the shipped `nginx.conf.example` pins `server_name your-domain.com` and is NOT affected.)
## Impact
- SAML (HIGH class): poisoned SP metadata/ACS advertises `https://evil/saml/acs`; IdPs that auto-consume dynamic SP metadata can be steered to an attacker ACS.
## Bypass Evidence
- Seed advisory GHSA-3735-5339-xfwx describes `HTTP_HOST` only; the string `SERVER_NAME` does not appear in it. Its affected ranges (`< 4.2.4` and `>= 4.3.0, < 4.3.3`) are BEFORE the fix; the SERVER_NAME sinks exist FROM the fix version onward (confirmed present on v4.2.4, v4.2.5, v4.3.3, v4.3.4, v4.4.0 via `git show <tag>:<file>`). Inverted version range + different source header + not mentioned in advisory = incomplete-fix bypass, not a duplicate.
- FrankenPHP `cgi.go` SERVER_NAME=`SplitHostPort(r.Host)` confirmed from source; shipped `Dockerfile`/Caddyfile has no host to pin. Apache `UseCanonicalName Off` is the documented default. Each sink reads SERVER_NAME raw (no validation), unlike `DocsController.php:267` which validates and whose comment concedes SERVER_NAME "could still let unexpected values through."
## Affected Versions
`>= 4.2.4` (SERVER_NAME fallback introduced by the CVE fix), spanning the 4.2.x (`>= 4.2.4`), 4.3.x (`>= 4.3.3`), and 4.4.x (`>= 4.4.0`) lines. 4.3.0 to 4.3.2 still carry the older `HTTP_HOST` shape and are covered by GHSA-3735-5339-xfwx / CVE-2026-54588.
## Deployment note
Only FrankenPHP/official-Docker and Apache-default derive SERVER_NAME from the client Host. Stock nginx (shipped `nginx.conf.example`) pins `server_name` to the configured directive and is NOT affected — advisory text must state this to avoid overstating nginx.
---
Reported by zx (Jace) — GitHub: @manus-use
Split from GHSA-wpfx-2c2q-hjq9, which originally covered three sinks with the same fallback.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistpoweradmin/poweradmin |
Corregida | 4.2.6, 4.3.5, 4.4.1 | — | — |
4.2.64.3.54.4.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/poweradmin/poweradmin/security/advisories/GHSA-c25f-hc8c-2jmwLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
