GHSA-mmh6-5cpf-2c72

Suggest an improvement
Source
https://github.com/advisories/GHSA-mmh6-5cpf-2c72
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/03/GHSA-mmh6-5cpf-2c72/GHSA-mmh6-5cpf-2c72.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mmh6-5cpf-2c72
Aliases
Published
2024-03-25T19:35:09Z
Modified
2024-03-26T12:58:09Z
Severity
  • 3.8 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
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

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

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

Database specific
{
    "nvd_published_at": "2024-03-26T03:15:13Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "LOW",
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-25T19:35:09Z"
}
References

Affected packages

Packagist / phpmyfaq/phpmyfaq

Package

Name
phpmyfaq/phpmyfaq
Purl
pkg:composer/phpmyfaq/phpmyfaq

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.2.5
Fixed
3.2.6

Affected versions

3.*

3.2.5