Bug 18825 - sudo doesn't clear LANG and LC_ALL
Summary: sudo doesn't clear LANG and LC_ALL
Status: CLOSED DUPLICATE of bug 18878
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sudo
Version: 7.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
Keywords: Security
Depends On:
TreeView+ depends on / blocked
Reported: 2000-10-10 15:39 UTC by Manfred Spraul
Modified: 2007-04-18 16:29 UTC (History)
0 users

Clone Of:
Last Closed: 2000-10-10 21:39:37 UTC

Attachments (Terms of Use)

Description Manfred Spraul 2000-10-10 15:39:50 UTC
The subject explains the problem:
* sudo can be used to execute programs as root in a controlled fashion.
* sudo tries to remove dangerous environment variables such as IFS or LD_?
* neither LANG nor LC_ALL are cleared, but they are dangerous.

Could someone check if this is a bug?


Comment 1 Bernhard Rosenkraenzer 2000-10-10 20:46:20 UTC
Why do you think LANG or LC_ALL are dangerous? The glibc bug that let users
specify their own locale files translating format strings and stuff has been

Comment 2 Manfred Spraul 2000-10-10 21:39:31 UTC
sudo itself is safe, but sudo will launch additional programs that aren't setuid

And in your recent security advisory for usermode-1.36 I read:

> The usermode package contains a binary (/usr/bin/userhelper),
> which is used to control access to programs which are to be
> executed as root.  Because programs invoked by userhelper
> are not actually running setuid-root, security measures built
> into recent versions of glibc are not active.


sudo is doing exactly what userhelper is doing.

Comment 3 Bernhard Rosenkraenzer 2000-10-11 10:14:47 UTC

*** This bug has been marked as a duplicate of 18878 ***

Note You need to log in before you can comment on or make changes to this bug.