Advisory

GHSA-48vw-jpf8-hwqh

Also known as: CVE-2024-28108

Summary

phpMyFAQ Stored HTML Injection at contentLink

Details

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>HTML_INJECTION</h1> for the contentLink parameter.

image

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-03-25 19:45 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

phpmyfaq/phpmyfaq

Packagist · All systems

Affected

  • introduced 3.2.5, fixed 3.2.6 (ecosystem)

Fixed versions

3.2.6

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences