When Keystone is in DEBUG mode, Password are printed in clear text in keystone.log

Bug #1050288 reported by Nir Magnezi
This bug report is a duplicate of:  Bug #1004114: Password logging. Edit Remove
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Confirmed
Medium
Unassigned

Bug Description

Scenario:
=========

1. Set Keystone to DEBUG Mode:
   a. Change: debug = True in /etc/keystone/keystone.conf
   b. Restart keystone: service openstack-keystone restart
2. tail -f /var/log/keystone/keystone.log | grep password
3. Login Openstack via Dashbaord.

Result:
=======

1. You'll see the password in clear text:
2012-09-13 11:48:33 DEBUG [keystone.common.wsgi]
2012-09-13 11:48:33 DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************
2012-09-13 11:48:33 DEBUG [keystone.common.wsgi] {"auth": {"passwordCredentials": {"username": "admin", "password": "secret"}}}
2012-09-13 11:48:33 DEBUG [keystone.common.wsgi]

(Reproduced several times 100% reproducible)
Attached logs:
compute.log

Tags: security
Revision history for this message
Nir Magnezi (nmagnezi) wrote :
Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like Keystone should borrow Nova's log scrubbing feature.

Changed in keystone:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

Adding keystone-core

Revision history for this message
Dolph Mathews (dolph) wrote :

I'd suggest marking this as public (and/or dupe), as this is already documented pretty clearly in the default etc/keystone.conf.sample as a result of bug 1004114:

    # Print more verbose output
    # (includes plaintext request logging, potentially including passwords)
    # debug = False

See: https://github.com/openstack/keystone/commit/0abf6ba2

Revision history for this message
Thierry Carrez (ttx) wrote :

Agreed, it's more a welcome strengthening than a vulnerability.
Russell: agree to open ?

tags: added: security
Revision history for this message
Steve Beattie (sbeattie) wrote : Re: [Bug 1050288] Re: When Keystone is in DEBUG mode, Password are printed in clear text in keystone.log

On Thu, Sep 13, 2012 at 02:41:14PM -0000, Thierry Carrez wrote:
> Agreed, it's more a welcome strengthening than a vulnerability.
> Russell: agree to open ?

I'm not Russell, but I'd agree with that.

--
Steve Beattie
<email address hidden>
http://NxNW.org/~steve/

Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

I would also agree this doesn't warrent being a private security vulnerability. There's no exploit here, only an unfortunate oversight in a setting that's absolutely NOT recommended for deployment to begin with.

This sounds like a great candidate for a feature to be pulled into openstack-common so all the projects can use it!

Joseph Heck (heckj)
security vulnerability: yes → no
visibility: private → public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.