20764 : Sudo PERL5OPT Environment Cleaning Multiple Variable Privilege Escalation
Printer | http://osvdb.org/20764 | Email This | Edit Vulnerability

Views This Week Views All Time Added to OSVDB Last Modified Modified (since 2008) Percent Complete
6 200 over 6 years ago about 1 year ago 2 times 100%

Timeline

Disclosure Date Vendor Solution Date
2005-11-10 2005-11-10

Description

Sudo contain a flaw that may allow a malicious user to gain access to unauthorized privileges. The issue is triggered when a user is able to run perl scripts via Sudo, and the perl scripts to not have the taint flag (-T). This flaw may lead to a loss of integrity.

Classification

Location: Local Access Required
Attack Type: Other
Impact: Loss of Integrity
Solution: Workaround, Patch / RCS, Upgrade
Exploit: Exploit Public
Disclosure: OSVDB Verified, Vendor Verified, Vendor Verified, Third-party Verified, Coordinated Disclosure

Technical

An attacker may set the PERLLIB, PERL5LIB, and PERL5OPT environment variables to arbitrary paths, and sudo does not filter them and passes them directly to perl. This results in perl looking at these paths for libraries when running a "use()", "require()", or "do()". This issue is very similar to LD_LIBRARY_PATH attacks.

Solution

Upgrade to version 1.6.8p12 or higher, as it has been reported to fix this vulnerability. An administrator can also apply the following workaround: Add
'Defaults env_delete+="PERLLIB PERL5LIB PERL5OPT"' to
the top of the sudoers file to strip out the offending variables.

Products

Sudo
Watch-list
Sudo
Watch-list
1.6.3p7
1.6.8p7
1.3.1p12
1.5.6
1.6.4
1.6.8p8
1.3.1p14
1.3.1p13
1.6.4p1
1.3.2 BETA
1.6.4p2
1.3.3 BETA
1.3.4 BETA
1.3.5 BETA
1.3.1
1.6.5p2
1.6.5
1.3.6 BETA
1.5.7
1.6.6
1.6.5p1
1.5.8
1.6.7
1.3.7 GAMMA
1.5.8p1
1.6.7p1
1.4
1.5.8p2
1.6.7p2
1.4.1
1.6
1.6.7p3
1.4.3
1.3.1p2
1.4.2
1.6.1
1.6.7p4
1.3.1p4
1.4.4
1.3.1p3
1.6.2
1.6.7p5
1.3.1p5
1.4.5
1.6.8
1.3.1p6
1.5
1.3.1p7
1.5.1
1.6.3
1.6.8p2
1.3.1p8
1.5.2
1.6.3p3
1.6.3p1
1.6.8p3
1.6.8p1
1.5.3
1.6.3p4
1.6.3p2
1.6.8p4
1.3.1p9
1.6.3p5
1.6.8p5
1.3.1p10
1.5.4
1.5.5
1.3.1p11
1.6.8p6
1.6.3p6
1.6.8p9
1.6.8p10
1.6.8p11

References

Tools & Filters

20465 20779 20780 20919 22812

Credit

CVSSv2 Score

CVSSv2 Base Score = 7.2
Source: nvd.nist.gov | Generated: 2006-01-10 | Disagree? | There are 1 more: View All

Access_vector_0 Access_complexity_2 Authentication_2 Confidentiality_impact_2 Integrity_impact_2 Availability_impact_2

Blogs

This section lists the latest news and blogs found via the daylife API (and for older items, the technorati API), which mention or otherwise discuss this vulnerability.

None found at this time

Comments

No Comments.

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and 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 copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2012 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use