Description
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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- OpenBSD 2.9/3.0 - Default Crontab Root Command Injection EDB-21373 · local · Apr 11, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://www.openbsd.org/errata30.html#mail
- 20020411 OpenBSD Local Root Compromise mailing-list
- 4495 vdb-entry
- openbsd-mail-root-privileges(8818) vdb-entry
- 20020411 local root compromise in openbsd 3.0 and below mailing-list
- 5269 vdb-entry