OpenBSD /usr/bin/mail in non-interactive mode could allow local root privileges
|openbsd-mail-root-privileges (8818)||High Risk|
A vulnerability in the /usr/bin/mail program in OpenBSD could allow a local attacker to gain root privileges on the system. The /usr/bin/mail program fails to properly filter out tilde (~) escape characters from the body of an email message when running in non-interactive mode. An attacker could exploit this vulnerability using one of the system's default cron jobs to gain root privileges on the system.
Upgrade to the latest version of OpenBSD 3.0-current (dated after April 8, 2002), available from the OpenBSD Web site. See References.
— OR —
Apply the patch for this vulnerability, as listed in OpenBSD Security Advisory, April 11, 2002. See References.
- BugTraq Mailing List, Thu Apr 11 2002 - 06:29:28 CDT: local root compromise in openbsd 3.0 and below.
- OpenBSD Security Advisory, April 11, 2002: mail(1) will process tilde escapes even in non-interactive mode. This can lead to a root compromise..
- OpenBSD Web site: OpenBSD v. 3.0.
- ZOOM International Security Advisory April 11, 2002: OpenBSD local root compromise.
- BID-4495: OpenBSD Default Crontab root Compromise Vulnerability
- CVE-2002-0542: mail in OpenBSD 2.9 and 3.0 processes a tilde (~) escape character in a message even when it is not in interactive mode, which could allow local users to gain root privileges via calls to mail in cron.
- OSVDB ID: 5269: OpenBSD mail Escape Character Privilege Escalation
- OpenBSD OpenBSD 3.0 and prior
Apr 11, 2002
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this