Information
--------------------
Advisory by Netsparker (now Invicti)
Name: XSS Vulnerabilities in Andy's PHP Knowledgebase
Software: Andy's PHP Knowledgebase 0.95.7 and possibly below.
Vendor Homepage: http://aphpkb.org/
Vulnerability Type: Cross-Site Scripting
Severity: Critical
Researcher: Omar Kurt
Advisory Reference: NS-13-017

Description
--------------------
Andy's PHP Knowledgebase using MySQL is a database driven knowledgebase management system. It includes bookmark-friendly URLs, Q&A, easy search with browsing by article tags, article submission, a powerful administrator interface, and a professional and attractive interface.

Details
--------------------
Andy's PHP Knowledgebase is affected by XSS vulnerabilities in version 0.95.7.

Example PoC urls are as follows :

  • XSS
    http://example.com/register.php (POST - params: news_id)
    http://example.com/saa.php (Referer - '"--></style></script><script>netsparker(0x000122)</script>)
    http://example.com/login.php (POST - username)
    http://example.com/keysearch.php (POST - keyword_list)


You can read the full article about Cross-Site Scripting vulnerabilities from here :


Solution
--------------------

http://aphpkb.org
https://sourceforge.net/projects/aphpkb/files/aphpkb-0.95.8.tgz/download?use_mirror=garr&download=

Advisory Timeline
--------------------

10/12/2013 - First Contact - No Response
13/12/2013 - Sent Vulnerabilities Details
24/12/2013 - Vulnerabilities Fixed and Version 0.95.8 Released by Developer
24/12/2013 - Advisory Released

Credits
--------------------
It has been discovered on testing of Invicti Web Application Security Scanner.

About Invicti
--------------------
Invicti Security is transforming the way web applications are secured. Invicti empowers organizations in every industry to scale their overall security operations, make the best use of their security resources, and engage developers in helping to improve their overall security posture.