GitHub Advisoryadvisory · Packagist

GHSA-48vw-jpf8-hwqh phpMyFAQ Stored HTML Injection at contentLink

MEDIUM Published 2024-03-25 Modified 2024-03-25 Official page ↗
Aliases
CVE-2024-28108
Ecosystem
Packagist
Packages
phpmyfaq/phpmyfaq
Severity
Moderate
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-79, CWE-80
Reviewed
2024-03-25

Affected packages

• Packagist phpmyfaq/phpmyfaq: >= 3.2.5, < 3.2.6 → fixed in 3.2.6

Description

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=HTML_INJECTION` for the contentLink parameter. 2. Verify the HTML injection by viewing the FAQ itself, “All categories” → “CategoryName” → ”QuestionName”. 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.

Related

Alias · CVE (1)

  • CVE-2024-28108 phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. vulnerability

Weakness · CWE (2)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness
  • CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page weakness

References