Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 520140 (CVE-2012-6655)

Summary: sys-apps/accountsservice: local encrypted password disclosure flaw
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED WONTFIX    
Severity: minor CC: gnome
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.openwall.com/lists/oss-security/2014/08/15/5
Whiteboard: B3 [upstream]
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2014-08-17 18:09:50 UTC
From ${URL} :

It was reported that accountsservice invokes usermod with the -p parameter when calling SetPassword(), which can leak encrypted 
passwords locally (being that they are briefly visible via ps).

As noted in the upstream bug:

The relevant code is in src/user.c in the user_change_password_authorized_cb() function:

        argv[0] = "/usr/sbin/usermod";
        argv[1] = "-p";
        argv[2] = strings[0];
        argv[3] = "--";
        argv[4] = user->user_name;
        argv[5] = NULL;

strings[0] has been set to the crypted password in user_set_password(). The crypted password has been passed from the client (ie: 
gnome-control-center).

This has not yet been corrected upstream.

References:

https://bugs.freedesktop.org/show_bug.cgi?id=55000
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757912
https://bugzilla.redhat.com/show_bug.cgi?id=1130538



@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Christopher Díaz Riveros (RETIRED) gentoo-dev Security 2017-07-06 17:53:40 UTC
From: 

https://bugzilla.redhat.com/show_bug.cgi?id=1130538
https://access.redhat.com/security/cve/CVE-2012-6655

The bug was labeled closed wontfix