Red Hat Bugzilla – Bug 4706
Big hole in crond
Last modified: 2008-05-01 11:37:51 EDT
cron_popen is very very trusting, and has multiple problems:
1) for fun, on a system not accepting mail, set
MAILTO=" -bd" and put in an entry like * * * * * ls
wait a minute, and ps -ax | grep sendmail... Now try using
2) there's an overflowable buffer where if you put more than
100 space-seperated items into MAILTO, you get a nice segv.
Looks quite exploitable.
Preliminary patch sent - look sane?
fixed in errata.