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

GHSA-6W97-49H8-58WH

Incorrect permission checks on admin content pages disclose draft/inactive content (news edit, FAQ translate)

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-6W97-49H8-58WH 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 HTML pages enforce the wrong permission, so lesser-privileged editors can read content they are not entitled to — including records invisible to the public:

  1. `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.
  2. `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

  1. As admin: create an inactive draft news item and set a FAQ inactive, with unique marker strings in their content.
  2. Grant a test user ONLY `addnews`: `GET /admin/news/edit/{id}` → 200, draft body (marker) present. Control: strip all rights → 403.
  3. 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.

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

Rangos afectados

Afectada Corregida
phpmyfaq/phpmyfaq≤ 4.1.7
4.1.7
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-6w97-49h8-58wh

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