facebook facebook twitter rss

CRUCMS Crucial Networking - SQL Injection Vulnerability

Author: kj-fido , Published: 30-05-2015
Product: CRUCMS - Content Management System 2015 Q2

Exploitation Technique:

Severity Level:

Technical Details & Description:
Multiple remote sql injection vulnerabilities has been discovered in the official Crucial Networking - CRUCMS web-application (2015 Q2).
The vulnerability allows remote attackers to execute own sql commands to compromise the web-applicaation or database management system.

The vulnerabilities are located in the id value of the `projects-cat.php`,`kitchen-chefs-detail.php` and `gallery-view.php` files.
Remote attackers are able to execute own sql commands by manipulation of the GET method request with the vulnerable id value.
The request method to inject the command is GET and the issue is located on the application-side.

The security risk of the sql injection vulnerability is estimated as high with a cvss (common vulnerability scoring system) count of 8.2.
Exploitation of the remote sql injection web vulnerability requires no user interaction or privilege web-application user account.
Successful exploitation of the remote sql injection results in dbms, web-server and web-application compromise.

Request Method(s):
[+] GET

Vulnerable File(s):
[+] projects-cat.php
[+] kitchen-chefs-detail.php
[+] gallery-view.php

Vulnerable Parameter(s):
[+] id

Proof of Concept (PoC):
The sql Injection web vulnerability can be exploited by remote attackers without privilege web-application user account or user interaction.
For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue.

http://www.[WEBSITE].com/projects-cat.php?ID=-1' union all select [SQL INJECTION VULNERABILITY!]--
http://www.[WEBSITE].com/kitchen-chefs-detail.php?id=-10' union all select [SQL INJECTION VULNERABILITY!]--
http://www.[WEBSITE].com/gallery-view.php?id=-2' union all select [SQL INJECTION VULNERABILITY!]--

Note: use for example SQLMAP to find the (DB NAME) then use this command to get admin username and password
Command: sqlmap -u http://www.site.com/anyinfectedfile.php?ID=[] --dump -D [DB NAME] -T tblAccess


Solution - Fix & Patch:
The sql vulnerability can be patched by a secure parse and encode of the vulnerable id value.
Use a prepared statement to protect the request and restrict the input by disallowing special chars like script code tags and co.

Security Risk:
The security risk of the remote sql injection web vulnerability in the content management system is estimated as high. (CVSS 8.2)

Credits & Authors:
kjfido - To PoTi_SaD-Dz, mrdanger_3 and to all my old friends +ALL Muslims

Like us on Facebook :