Bug 1130538 (CVE-2012-6655) - CVE-2012-6655 accountsservice: local encrypted password disclosure when changing password
Summary: CVE-2012-6655 accountsservice: local encrypted password disclosure when chang...
Alias: CVE-2012-6655
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1130543
Blocks: 864524
TreeView+ depends on / blocked
Reported: 2014-08-15 13:41 UTC by Vincent Danen
Modified: 2019-09-29 13:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-08-22 15:06:03 UTC

Attachments (Terms of Use)

Description Vincent Danen 2014-08-15 13:41:59 UTC
It was reported [1] 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.

[1] https://bugs.freedesktop.org/show_bug.cgi?id=55000

Comment 1 Vincent Danen 2014-08-15 13:46:57 UTC
Created accountsservice tracking bugs for this issue:

Affects: fedora-all [bug 1130543]

Comment 2 Vincent Danen 2014-08-16 17:41:24 UTC
This was assigned CVE-2012-6655:


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