Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:30862
HistoryJun 14, 2014 - 12:00 a.m.

[KIS-2014-07] Dotclear <= 2.6.2 (categories.php) SQL Injection Vulnerability

2014-06-1400:00:00
vulners.com
475

Dotclear <= 2.6.2 (categories.php) SQL Injection Vulnerability

[-] Software Link:

http://dotclear.org/

[-] Affected Versions:

Version 2.6.2 and probably prior versions.

[-] Vulnerability Description:

The vulnerable code is located in /admin/categories.php:

  1. Update order

  2. if (!empty($_POST['save_order']) && !empty($_POST['categories_order'])) {
  3. $categories = json_decode&#40;$_POST[&#39;categories_order&#39;]&#41;;
    
  4. foreach &#40;$categories as $category&#41; {
    
  5. 	if &#40;!empty&#40;$category-&gt;item_id&#41;&#41; {
    
  6. 		$core-&gt;blog-&gt;updCategoryPosition&#40;$category-&gt;item_id, $category-&gt;left, $category-&gt;right&#41;;
    
  7. 	}
    
  8. }
    
  9. dcPage::addSuccessNotice&#40;__&#40;&#39;Categories have been successfully reordered.&#39;&#41;&#41;;
    
  10. http::redirect&#40;&#39;categories.php&#39;&#41;;
    
  11. }

User input passed through the $_POST['categories_order'] parameter is not properly sanitized before being used in a
call to the dcBlog::updCategoryPosition() method at line 76. This could be exploited to conduct SQL injection attacks
leveraging the UPDATE statement defined in the nestedTree::updatePosition() method. Successful exploitation of this
vulnerability requires an account with the β€œmanage categories” permission.

[-] Solution:

Update to version 2.6.3.

[-] Disclosure Timeline:

[14/05/2014] - Vendor notified
[15/05/2014] - Vendor response
[16/05/2014] - Version 2.6.3 released: http://dotclear.org/blog/post/2014/05/16/Dotclear-2.6.3
[16/05/2014] - CVE number requested
[19/05/2014] - CVE number assigned
[21/05/2014] - Public disclosure

[-] CVE Reference:

The Common Vulnerabilities and Exposures project (cve.mitre.org)
has assigned the name CVE-2014-3783 to this vulnerability.

[-] Credits:

Vulnerability discovered by Egidio Romano.

[-] Original Advisory:

http://karmainsecurity.com/KIS-2014-07