After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637378 - CVE-2010-4000 gnome-shell: insecure library loading vulnerability
CVE-2010-4000 gnome-shell: insecure library loading vulnerability
Status: RESOLVED DUPLICATE of bug 631004
Product: gnome-shell
Classification: Core
Component: general
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-16 10:48 UTC by Laurent Bigonville
Modified: 2010-12-16 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Laurent Bigonville 2010-12-16 10:48:04 UTC
Hi,

I'm forwarding upstream a bug that has been opened on RH bugzilla:

"Ludwig Nussel discovered that gnome-shell contained a script that could be
abused by an attacker to execute arbitrary code.

The vulnerability is due to an insecure change to LD_LIBRARY_PATH, and
environment variable used by ld.so(8) to look for libraries in directories
other than the standard paths.  When there is an empty item in the
colon-separated list of directories in LD_LIBRARY_PATH, ld.so(8) treats it as a
'.' (current working directory).  If the given script is executed from a
directory where a local attacker could write files, there is a chance for
exploitation.

In Fedora, /usr/bin/gnome-shell re-sets LD_LIBRARY_PATH insecurely:

163         if os.path.exists(mozjs_libdir + '/libmozjs.so'):
164             env['LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH', '')
+     ':' + mozjs_libdir
...
206     return subprocess.Popen(args, env=env)

A solution is to patch the script to test if LD_LIBRARY_PATH is previously set:

if os.environ.get('LD_LIBRARY_PATH'):
    env['LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH', '') + ':' + 
mozjs_libdir
else:
    env['LD_LIBRARY_PATH'] = mozjs_libdir
"


Original bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4000
CVE: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4000
Comment 1 Dan Winship 2010-12-16 12:30:57 UTC
this was fixed months ago

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