phpMyFAQ - Stored Cross-Site Scripting via raw Filter in search.twig
thorsten phpmyfaq
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaq Packagist |
|
|
| thorsten/phpmyfaq Packagist |
|
|
thorsten phpmyfaq
| Product | Affected | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaq Packagist |
|
|
| thorsten/phpmyfaq Packagist |
|
|
phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in search.twig where result.question and result.answerPreview are rendered with the raw filter, disabling autoescape protection. Attackers with FAQ editor privileges can inject HTML-entity-encoded payloads that bypass html_entity_decode(strip_tags()) processing in SearchController.php, executing arbitrary JavaScript in every visitor's browser context including administrators.
From the CVE record · VulnCheck
Before 4.1.2, phpMyFAQ renders search result content without autoescaping in search.twig. An attacker with FAQ editor privileges can inject content that executes JavaScript in the browser of a visitor who views the affected search results, including an administrator.
Anyone running the Packagist packages phpmyfaq/phpmyfaq or thorsten/phpmyfaq below 4.1.2 should check their installation.