Bug 4706 - Big hole in crond
Big hole in crond
Product: Red Hat Linux
Classification: Retired
Component: crontabs (Show other bugs)
All Linux
high Severity medium
: ---
: ---
Assigned To: Crutcher Dunnavant
: Security
Depends On:
  Show dependency treegraph
Reported: 1999-08-25 14:16 EDT by tymm
Modified: 2008-05-01 11:37 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-04-10 18:01:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description tymm 1999-08-25 14:16:12 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
your imagination.

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.
Comment 1 Bill Nottingham 1999-08-25 15:52:59 EDT
Preliminary patch sent - look sane?
Comment 2 Bill Nottingham 1999-08-27 16:35:59 EDT
fixed in errata.

Note You need to log in before you can comment on or make changes to this bug.