From 568ceb79049b822b4a4b5a8791a3c61c1bc8b0b4 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Thu, 2 Jan 2025 22:45:07 +0000 Subject: [PATCH] Publish GHSA-ww33-jppq-qfrp --- .../GHSA-ww33-jppq-qfrp.json | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 advisories/github-reviewed/2025/01/GHSA-ww33-jppq-qfrp/GHSA-ww33-jppq-qfrp.json diff --git a/advisories/github-reviewed/2025/01/GHSA-ww33-jppq-qfrp/GHSA-ww33-jppq-qfrp.json b/advisories/github-reviewed/2025/01/GHSA-ww33-jppq-qfrp/GHSA-ww33-jppq-qfrp.json new file mode 100644 index 0000000000000..6aec3f778be17 --- /dev/null +++ b/advisories/github-reviewed/2025/01/GHSA-ww33-jppq-qfrp/GHSA-ww33-jppq-qfrp.json @@ -0,0 +1,81 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-ww33-jppq-qfrp", + "modified": "2025-01-02T22:43:40Z", + "published": "2025-01-02T22:43:40Z", + "aliases": [ + "CVE-2024-56199" + ], + "summary": "phpMyFAQ Vulnerable to Stored HTML Injection at FAQ", + "details": "### Summary\nDue to insufficient validation on the content of new FAQ posts, it is possible for authenticated users to inject malicious HTML or JavaScript code that can impact other users viewing the FAQ. This vulnerability arises when user-provided inputs in FAQ entries are not sanitized or escaped before being rendered on the page.\n\n### Details\nAn attacker can inject malicious HTML content into the FAQ editor at http://localhost/admin/index.php?action=editentry, resulting in a complete disruption of the FAQ page's user interface. By injecting malformed HTML elements styled to cover the entire screen, an attacker can render the page unusable. This injection manipulates the page structure by introducing overlapping buttons, images, and iframes, breaking the intended layout and functionality. \n\n### PoC\n\n1. In the source code of a FAQ Q&A post, insert the likes of this snippet:\n```\n

<--` --!>

\n
\n
x
\n
\n```\n\n![image](https://github.com/user-attachments/assets/7c12ff40-1978-4dee-b501-c48f3ea2b9ba)\n2. A normal user would see the broken FAQ page, or otherwise manipulated by the attacker to present a different malicious page:\n![image](https://github.com/user-attachments/assets/4b815663-4836-4370-8b02-5b01bce71b0c)\n \nA demo (fresh install overwrites every 24hours) here: https://roy.demo.phpmyfaq.de/content/1/24/en/24.html?\n\n### Impact\nExploiting this issue can lead to Denial of Service for legitimate users, damage to the user experience, and potential abuse in phishing or defacement attacks. \n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "phpmyfaq/phpmyfaq" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "3.2.10" + }, + { + "last_affected": "4.0.1" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "Packagist", + "name": "thorsten/phpmyfaq" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "3.2.10" + }, + { + "last_affected": "4.0.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-ww33-jppq-qfrp" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-56199" + }, + { + "type": "PACKAGE", + "url": "https://github.com/thorsten/phpMyFAQ" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79", + "CWE-80" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-01-02T22:43:40Z", + "nvd_published_at": "2025-01-02T18:15:20Z" + } +} \ No newline at end of file