CVE-2024-28108: phpMyFAQ Stored HTML Injection at contentLink
Summary Due to insufficient validation on the contentLink parameter, it is possible for unauthenticated users to inject HTML code to the page which might affect other users. Also, requires that adding new FAQs is allowed for guests and that the admin doesn't check the content of a newly added FAQ.
PoC 1. Browse to ../phpmyfaq/index.php?action=add&cat=0 , enter https://test.com?p=<h1>HTMLINJECTION</h1> for the contentLink parameter. !image
2. Verify the HTML injection by viewing the FAQ itself, “All categories” → “CategoryName” → ”QuestionName”. !image
Impact Attackers can manipulate the appearance and functionality of web pages by injecting malicious HTML code. This can lead to various undesirable outcomes, such as defacing the website, redirecting users to malicious sites, or altering the content to deceive users. Additionally, unauthenticated HTML injection can compromise user privacy by displaying sensitive information or misleading content. It undermines the integrity of the application and erodes user trust, potentially resulting in loss of reputation and credibility.
Other sources
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Due to insufficient validation on the contentLink parameter, it is possible for unauthenticated users to inject HTML code to the page which might affect other users. Also, requires that adding new FAQs is allowed for guests and that the admin doesn't check the content of a newly added FAQ. This vulnerability is fixed in 3.2.6.
— NVD
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-28108?
CVE-2024-28108 has a high severity due to the potential for HTML injection affecting users.
How do I fix CVE-2024-28108?
To fix CVE-2024-28108, validate the 'contentLink' parameter to prevent HTML injection and restrict guest access to adding content.
What versions are affected by CVE-2024-28108?
CVE-2024-28108 affects phpMyFAQ version 3.2.5.
Can unauthenticated users exploit CVE-2024-28108?
Yes, unauthenticated users can exploit CVE-2024-28108 if adding new FAQs is allowed for guests.
What consequences might arise from CVE-2024-28108?
The consequences of CVE-2024-28108 include potential user data exposure and a compromised web page due to HTML injection.