Loading HuntDB...

GHSA-48vw-jpf8-hwqh

GitHub Security Advisory

phpMyFAQ Stored HTML Injection at contentLink

✓ GitHub Reviewed MODERATE Has CVE

Advisory 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](https://github.com/thorsten/phpMyFAQ/assets/63487456/4925d1ab-aa64-4781-8a44-f4c30cb8499c)

2. Verify the HTML injection by viewing the FAQ itself, “All categories” → “CategoryName” → ”QuestionName”.
![image](https://github.com/thorsten/phpMyFAQ/assets/63487456/54b077d8-fab4-4cb6-870c-f19fc25d8252)

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

Affected Packages

Packagist phpmyfaq/phpmyfaq
Affected versions: 3.2.5 (fixed in 3.2.6)

Related CVEs

Key Information

GHSA ID
GHSA-48vw-jpf8-hwqh
Published
March 25, 2024 7:45 PM
Last Modified
March 25, 2024 10:31 PM
CVSS Score
5.0 /10
Primary Ecosystem
Packagist
Primary Package
phpmyfaq/phpmyfaq
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 15, 2025 6:32 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.