vendor:
Sudo
by:
Charles 'core' Stevenson
7.2
CVSS
HIGH
Environment Variable Injection
77
CWE
Product Name: Sudo
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Linux and Unix
2002
Sudo Environment Variable Exploit
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.
Mitigation:
Ensure that sudo is configured to properly sanitize the environment it executes programs with.