NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2024-29196: phpMyFAQ Path Traversal in Attachments

lowCVSS 3.1 3.8GHSA-mmh6-5cpf-2c72

Summary There is a Path Traversal vulnerability in Attachments that allows attackers with admin rights to upload malicious files to other locations of the web root. PoC 1. In settings, the attachment location is vulnerable to path traversal and can be set to e.g ..\hacked 2.

Published Mar 25, 2024 · Updated Mar 26, 2024

Affected packages

phpmyfaq/phpmyfaq

Ecosystem
Composer (PHP)
Affected
= 3.2.5
Fixed in
3.2.6
Check
composer show phpmyfaq/phpmyfaq

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

There is a Path Traversal vulnerability in Attachments that allows attackers with admin rights to upload malicious files to other locations of the web root.

PoC

  1. In settings, the attachment location is vulnerable to path traversal and can be set to e.g ..\hacked

image

  1. 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
  1. 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.

image image

Impact

Attackers can potentially upload malicious files outside the specified directory.

Credited to kevinnivekkevin.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries