Description
sudo 1.6.0 through 1.6.3p7 does not properly clear the environment before calling the mail program, which could allow local users to gain root privileges by modifying environment variables and changing how the mail program is invoked.
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
- Sudo 1.6.3 - Unclean Environment Variable Privilege Escalation EDB-21227 · local · Jan 14, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- RHSA-2002:013 vendor-advisory
- sudo-unclean-env-root(7891) vdb-entry
- IMNX-2002-70-001-01 vendor-advisory
- 3871 vdb-entry
- 20020114 Sudo version 1.6.4 now available (fwd) mailing-list
- 20020116 Sudo +Postfix Exploit mailing-list
- http://www.sudo.ws/sudo/alerts/postfix.html
- SuSE-SA:2002:002 vendor-advisory
- MDKSA-2002:003 vendor-advisory
- DSA-101 vendor-advisory
- RHSA-2002:011 vendor-advisory
- CLA-2002:451 vendor-advisory