CVE-2024-28108: phpMyFAQ Stored HTML Injection at contentLink

Published Mar 25, 2024
·
Updated

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

2 affected componentsFixes available
composer/phpmyfaq/phpmyfaq=3.2.5
3.2.6
PhpMyFaq phpmyfaq=3.2.5

Event History

Mar 25, 2024
CVE Published
via MITRE·06:52 PM
Data Sourced
via MITRE·06:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·07:45 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-28108?

CVE-2024-28108 has a high severity due to the potential for HTML injection affecting users.

2

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.

3

What versions are affected by CVE-2024-28108?

CVE-2024-28108 affects phpMyFAQ version 3.2.5.

4

Can unauthenticated users exploit CVE-2024-28108?

Yes, unauthenticated users can exploit CVE-2024-28108 if adding new FAQs is allowed for guests.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203