phpMyFAQ missing authorization exposes /api/setup/backup to any authenticated user
thorsten phpMyFAQ
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaq Packagist |
|
|
| thorsten/phpmyfaq Packagist |
|
|
thorsten phpMyFAQ
| Product | Affected | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaq Packagist |
|
|
| thorsten/phpmyfaq Packagist |
|
|
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.
From the CVE record · GitHub_M
phpMyFAQ versions below 4.0.17 do not check configuration or admin permissions on the /api/setup/backup endpoint. Any authenticated user, including a non-admin, can trigger a configuration backup and receive a link to the generated ZIP.
Check deployments using the Packagist packages phpmyfaq/phpmyfaq or thorsten/phpmyfaq below version 4.0.17.