PT-2026-57179 · Phpmyfaq · Phpmyfaq
CVSS v4.0
5.1
Medium
| Vector | AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
phpMyFAQ versions prior to 4.1.5
Description
An authenticated path traversal issue exists in the
concatenatePaths() function within src/phpMyFAQ/Export/Pdf/Wrapper.php. A user with FAQ editing privileges can store HTML containing crafted image paths that are processed during PDF generation. The path resolution logic uses strpos() to locate the substring "content" within a user-controlled path; if "content" is absent, the function returns false, which is cast to 0 as an integer, preserving the attacker-controlled path. This path is then passed to file get contents() without canonicalization or root-directory containment validation, potentially allowing the reading of files outside the intended content directory.Recommendations
Update phpMyFAQ to version 4.1.5 or later.
Exploit
Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Phpmyfaq