Sudo Unclean Environment Variable Root Program Execution Vulnerability
BID:3871
Info
Sudo Unclean Environment Variable Root Program Execution Vulnerability
| Bugtraq ID: | 3871 |
| Class: | Input Validation Error |
| CVE: |
CVE-2002-0043 |
| Remote: | No |
| Local: | Yes |
| Published: | Jan 14 2002 12:00AM |
| Updated: | Mar 19 2015 09:47AM |
| Credit: | This vulnerability was originally discovered by Sebastian Krahmer <[email protected]>. |
| Vulnerable: |
Todd Miller Sudo 1.6.3 p7 Todd Miller Sudo 1.6.3 p6 Todd Miller Sudo 1.6.3 p5 Todd Miller Sudo 1.6.3 p4 Todd Miller Sudo 1.6.3 p3 Todd Miller Sudo 1.6.3 p2 Todd Miller Sudo 1.6.3 p1 Todd Miller Sudo 1.6.3 Todd Miller Sudo 1.6.2 Todd Miller Sudo 1.6.1 |
| Not Vulnerable: |
Todd Miller Sudo 1.6.5 p1 Todd Miller Sudo 1.6.5 Todd Miller Sudo 1.6.4 p2 Todd Miller Sudo 1.6.4 p1 Todd Miller Sudo 1.6.4 |
Discussion
Sudo Unclean Environment Variable Root Program Execution Vulnerability
Sudo is a freely available, open source permissions management software package available for the Linux and Unix operating systems. It is maintained by Todd C. Miller.
Under some circumstances, sudo does not properly sanitize the environment it executes programs with. In the event that sudo is used to run a program such as an MTA with root privileges, this could result in a local user passing unsafe data to the program via environment variables. From these environment variables the user may be able to execute commands as root, and potentially gain elevated privileges.
Sudo is a freely available, open source permissions management software package available for the Linux and Unix operating systems. It is maintained by Todd C. Miller.
Under some circumstances, sudo does not properly sanitize the environment it executes programs with. In the event that sudo is used to run a program such as an MTA with root privileges, this could result in a local user passing unsafe data to the program via environment variables. From these environment variables the user may be able to execute commands as root, and potentially gain elevated privileges.
Exploit / POC
Sudo Unclean Environment Variable Root Program Execution Vulnerability
Exploit contributed by Charles 'core' Stevenson <[email protected]>:
Exploit contributed by Charles 'core' Stevenson <[email protected]>:
References
Sudo Unclean Environment Variable Root Program Execution Vulnerability
References:
References:
- Sudo Homepage (Sudo)