1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Exploit Title: phpMyFAQ 2.9.0 Stored XSS # Date: 09-06-2016 # Software Link: http://www.phpmyfaq.de/ # Exploit Author: Kacper Szurek # Contact: http://twitter.com/KacperSzurek # Website: http://security.szurek.pl/ # Category: webapps 1. Description PHP <code>filter_input()</code> function with <code>FILTER_VALIDATE_URL</code> flag is used to validate url inside <code>savefaq</code> functionality. But this function doesn’t protect against XSS. http://security.szurek.pl/phpmyfaq-290-stored-xss.html 2. Proof of Concept By default every user can propose faq entries. When admin activate article using http://phpmyfaq/admin/?action=view url or records.defaultActivation option is enabled, XSS will be visible on entry page: http://phpmyfaq/index.php?action=artikel&cat=%cat_id%&id=%article_id%&artlang=pl For exploitation use folowing url inside Link for this FAQ field: http://example.com/"><script>alert("xss")</script> 3. Solution: Update to version 2.9.1 |