llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · phpmyfaq/phpmyfaq

GHSA-GPWM-82CG-4WFW

Missing authorization on admin dashboard API endpoints (searches, content-health) — any authenticated user

Sin parche publicado
Descargar PNG JSON
CVSS 4.0
5.3
Media
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición92 dDesde la divulgación, 20 ago 2026, 2:24 p. m.
Detección92 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
20 ago 26
20 nov 26
21 nov 26
20 ago 26
12 sept 26
5 oct 26
28 oct 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-GPWM-82CG-4WFW divulgada · CVSS 5.3 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

> Authorized research notice: This vulnerability was discovered during authorized security research in an isolated lab environment against a local instance of phpMyFAQ (main @ 9435f34bd8fcaaeee02a9f679192e46b1b5fedcf, 4.2.0-alpha.2; issues cross-checked against the 4.1 stable branch where applicable). No production systems or third-party data were accessed. I am reporting under coordinated disclosure and will not publish details for 90 days from this report to allow a fix. Please confirm receipt within 7 days.

Summary

Two admin REST API endpoints under `/admin/api/dashboard/` enforce only *authentication*, not the `STATISTICS_VIEWLOGS` permission their sibling endpoints require. Any registered user — with zero admin rights — can read site-wide search-term statistics (what all visitors search for) and content-health counters. On installs with open registration (`security.enableRegistration=true`, the default) this is effectively public. The Administration-namespace gate (`ControllerContainerListener.php`) only demands a logged-in session, so per-endpoint permission checks are the only barrier — and they are missing here.

Credit: Ahmed Ibrahim (@skeletonsec)

Affected versions

  • Verified on `main` @ `9435f34` (4.2.0-alpha.2 nightly): `phpmyfaq/src/phpMyFAQ/Controller/Administration/Api/DashboardController.php:298-326` (`searches()`, `contentHealth()`).
  • The affected endpoints do not exist on the 4.1 stable branch — this affects the 4.2.0-alpha development line.

Root cause

`searches()` and `contentHealth()` call only `$this->userIsAuthenticated()`. Sibling endpoints in the same file guard correctly: `versions()`/`verify()` require `CONFIGURATION_EDIT`, `visits()`/`topTen()` require `STATISTICS_VIEWLOGS` — proving the omission is inconsistent rather than by design.

Proof of concept

  1. As an anonymous visitor, plant a term: `GET /search.html?search=UNIQUE-TERM&submit=Search`.
  2. Register/login a zero-rights user, then:
  3. Controls: same requests without a session → 401; guarded sibling `/admin/api/dashboard/versions` as the same user → 403.

Reproduced in an isolated lab with a scripted PoC (zero-rights account reads back an anonymously planted search term). Transcripts available on request.

Impact

Disclosure of site-wide search behavior (30-day popular search terms) and internal content statistics to any low-privileged or self-registered account.

Suggested remediation

Add `$this->userHasPermission(PermissionType::STATISTICS_VIEWLOGS);` to `searches()` and `contentHealth()`. Consider a route-level regression test asserting every `Administration\Api` route invokes a permission check.

CWE

CWE-862: Missing Authorization

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:L
AltoBajoNinguno
Integridad (sistema)VI:N
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:N
AltoBajoNinguno
Integridad (posterior)SI:N
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Versiones afectadas

4.2.0-alpha
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistphpmyfaq/phpmyfaq
Sin parche — — —
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-gpwm-82cg-4wfw

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.