GHSA-GPWM-82CG-4WFW
Missing authorization on admin dashboard API endpoints (searches, content-health) — any authenticated user
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
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| 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 |
> 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
- As an anonymous visitor, plant a term: `GET /search.html?search=UNIQUE-TERM&submit=Search`.
- Register/login a zero-rights user, then:
- 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.
Desglose de métricas
Versiones afectadas
4.2.0-alphaEstado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistphpmyfaq/phpmyfaq |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-gpwm-82cg-4wfwLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
