{"id":"GHSA-mmh6-5cpf-2c72","summary":"phpMyFAQ Path Traversal in Attachments","details":"### Summary\nThere is a Path Traversal vulnerability in Attachments that allows attackers with admin rights to upload malicious files to other locations of the web root.\n\n### PoC\n1. In settings, the attachment location is vulnerable to path traversal and can be set to e.g ..\\hacked\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/6167ba74-254c-4aed-9c16-759e5ceafd81)\n\n2. When the above is set, attachments files are now uploaded to e.g C:\\Apps\\XAMPP\\htdocs\\hacked instead of C:\\Apps\\XAMPP\\htdocs\\phpmyfaq\\attachments\n\n3. Verify this by uploading an attachment and see that the \"hacked\" directory is now created in the web root folder with the attachment file inside.\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/325df0cc-e9ee-48bd-a7bb-1295199b4d9e)\n![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/beb10a6a-9d56-4607-8da6-49581991b1fe)\n\n### Impact\nAttackers can potentially upload malicious files outside the specified directory.\n","aliases":["CVE-2024-29196"],"modified":"2026-09-10T03:50:10.646713076Z","published":"2024-03-25T19:35:09Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-03-25T19:35:09Z","nvd_published_at":"2024-03-26T03:15:13Z","cwe_ids":["CWE-22"],"severity":"LOW"},"references":[{"type":"WEB","url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-mmh6-5cpf-2c72"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29196"},{"type":"WEB","url":"https://github.com/thorsten/phpMyFAQ/commit/7ae2559f079cd5fc9948b6fdfb87581f93840f62"},{"type":"PACKAGE","url":"https://github.com/thorsten/phpMyFAQ"}],"affected":[{"package":{"name":"phpmyfaq/phpmyfaq","ecosystem":"Packagist","purl":"pkg:composer/phpmyfaq/phpmyfaq"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.5"},{"fixed":"3.2.6"}]}],"versions":["3.2.5"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-mmh6-5cpf-2c72/GHSA-mmh6-5cpf-2c72.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"}]}