Thorsten phpMyFAQ
phpMyFAQ: Path Traversal - Arbitrary File Deletion in MediaBrowserController
phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, the MediaBrowserController::index() method handles file deletion for the media browser. When the fileRemove action is triggered, the user-supplied name parameter is concatenated with the base upload directory path without any path traversal validation. The FILTER_SANITIZE_SPECIAL_CHARS filter only encodes HTML special characters (&, ', ", <, >) and characters with ASCII value < 32, and does not prevent directory traversal sequences like ../. Additionally, the endpoint does not validate CSRF tokens, making it exploitable via CSRF attacks. This issue has been patched in version 4.1.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.1.1
Fixed in 4.1.1
Mitigation
Upgrade phpMyFAQ to 4.1.1 or later.
References
- Vendor advisory github.com/thorsten/phpMyFAQ/security/advisori…
- Release notes github.com/thorsten/phpMyFAQ/releases/tag/4.1.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.