Description
phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows registered users to inject javascript: links via FAQ comments. When the comment editor is enabled, Utils::parseUrl() strips https:// from sanitized hrefs, turning an allowed https://javascript:443/ link into executable script that runs on the shared admin origin when clicked.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| thorsten | phpMyFAQ | 4.2.0-alpha <4.2.0-RC.2 | — |
| thorsten | phpMyFAQ | 0 <4.1.12 | — |
References
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-37pw-f446-wpf2
- https://github.com/thorsten/phpMyFAQ/commit/b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2
- https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-stored-xss-via-utils-parseurl