GHSA-HGMW-RC66-M59F
Host header injection via SERVER_NAME fallback turns the OIDC logout redirect into an open redirect
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HGMW-RC66-M59F divulgada · CVSS 6.1 (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 OIDC logout `post_logout_redirect_uri` 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, giving an open redirect after logout.
## 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:
- `LogoutController::getBaseUrl()` (`LogoutController.php:292`) — builds OIDC `post_logout_redirect_uri`. Reached with a live OIDC session.
`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
- OIDC logout (MEDIUM): poisoned `post_logout_redirect_uri` → open redirect (needs a live OIDC session).
## 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-hgmw-rc66-m59fLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
