6491924 2001-05-13 20:07 +0000  /35 rader/ zenith parsec <zenith_parsec@the-astronaut.com>
Sänt av: joel@lysator.liu.se
Importerad: 2001-05-14  11:57  av Brevbäraren
Extern mottagare: bugtraq@securityfocus.com
Mottagare: Bugtraq (import) <16956>
Ärende: RH7.0: man local gid 15 (man) exploit
------------------------------------------------------------
From: "zenith parsec" <zenith_parsec@the-astronaut.com>
To: bugtraq@securityfocus.com
Message-ID: <20010513200734.9834.qmail@fiver.freemessage.com>

========================================================
Vulnerable systems: redhat 7.0 with man-1.5h1-10 (default
package) and earlier.
=========================================================
Heap Based Overflow of man via -S option gives GID man.

Due to a slight error in a length check, the -S option to man can
cause a buffer overflow on the heap, allowing redirection of
execution into user supplied code.

man -S `perl -e 'print ":" x 100'`

Will cause a seg fault if you are vulnerable.

It is possible to insert a pointer into a linked list that will allow
overwriting of any value in memory that is followed by 4 null
characters (a null pointer). one such memory location is the last
entry on the GOT (global offset table). When another item is added to
the linked list, the address of the data (a filename) is inserted
over the last value, effectively redefining the function to the code
represented by the filename.

Putting shellcode in the filename allows execution of arbitrary code
when the function referred to is called.

Redhat have be contacted, and will be releasing an errata soon.

--zen-parse

GID man allows a race condition for root via
/etc/cron.daily/makewhatis and /sbin/makwhatis

Sign up for your FREE E-MAIL account @ Dynamitemail:
http://www.dynamitemail.com
(6491924) /zenith parsec <zenith_parsec@the-astronaut.com>/(Ombruten)