GHSA-6W97-49H8-58WH
Incorrect permission checks on admin content pages disclose draft/inactive content (news edit, FAQ translate)
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-6W97-49H8-58WH 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 HTML pages enforce the wrong permission, so lesser-privileged editors can read content they are not entitled to — including records invisible to the public:
- `GET /admin/news/edit/{id}` requires `NEWS_ADD` instead of `NEWS_EDIT`. A user holding only the "add news" right reads the full body of any news item, including inactive drafts.
- `GET /admin/faq/translate/{faqId}/{lang}` requires `FAQ_ADD` although a dedicated `translate_faq` permission exists (`faqright` id 49). A user holding only "add FAQ" reads the full content of inactive FAQs, which return 404 on every public path.
Credit: Ahmed Ibrahim (@skeletonsec)
Affected versions
- Verified on `main` @ `9435f34` (4.2.0-alpha.2 nightly): `Administration/NewsController.php:98`, `Administration/FaqController.php:471`.
- Same defects verified on the `4.1` stable branch: `Administration/NewsController.php:92`, `Administration/FaqController.php:457` — affecting the latest stable release line.
Root cause
Permission-constant mix-ups on page controllers. Both guards are terminating (fail-closed) — they simply check the wrong constant. The corresponding mutation APIs enforce the correct permissions (`Api/NewsController.php` requires `NEWS_EDIT`), confirming the intended privilege level.
Proof of concept
- As admin: create an inactive draft news item and set a FAQ inactive, with unique marker strings in their content.
- Grant a test user ONLY `addnews`: `GET /admin/news/edit/{id}` → 200, draft body (marker) present. Control: strip all rights → 403.
- Grant ONLY `add_faq`: `GET /admin/faq/translate/{id}/en` → 200, inactive FAQ content (marker) present. Public control: `GET /api/v4.0/faq/{id}` → 404.
Reproduced twice in an isolated lab with fresh sessions per rights change. PoC script and page captures available on request.
Impact
Confidentiality breach of unpublished content (e.g. draft announcements such as security advisories in preparation, or deactivated FAQs) to junior content editors.
Suggested remediation
- `NewsController::edit()`: require `PermissionType::NEWS_EDIT`.
- `FaqController::translate()`: require the dedicated `PermissionType::FAQ_TRANSLATE`.
- Consider a test asserting page-level guards match the permission of the mutations they front.
CWE
CWE-863: Incorrect Authorization
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado 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-6w97-49h8-58whLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
