Advisory

GHSA-mmh6-5cpf-2c72

Also known as: CVE-2024-29196

Summary

phpMyFAQ Path Traversal in Attachments

Details

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.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-03-25 19:35 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

phpmyfaq/phpmyfaq

Packagist · All systems

Affected

  • introduced 3.2.5, fixed 3.2.6 (ecosystem)

Fixed versions

3.2.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences