phpMyFAQ - Stored XSS via Utils::parseUrl() in Comment Rendering
thorsten phpmyfaq
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
thorsten phpmyfaq
| Product | Affected | Fixed in |
|---|---|---|
| thorsten/phpmyfaq Packagist |
|
|
| phpmyfaq/phpmyfaq Packagist |
|
|
phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in Utils::parseUrl() that allows authenticated users to inject JavaScript via malformed URLs in comments. Attackers can craft URLs with unescaped quotes to inject event handlers, stealing admin session cookies and achieving full application takeover when visitors view affected FAQ pages.
From the CVE record · VulnCheck
phpMyFAQ has a stored cross-site scripting vulnerability in Utils::parseUrl(). An authenticated user can put a malformed URL in a comment to inject JavaScript that runs when someone views the affected FAQ page. If an admin views the page, the attacker can steal their session cookie and take over the application.
Check installations using Packagist packages thorsten/phpmyfaq or phpmyfaq/phpmyfaq at versions >=4.1.1 and <4.1.2.