Bug 1591480 (CVE-2018-10871) - CVE-2018-10871 389-ds-base: replication and the Retro Changelog plugin store plaintext password by default
Summary: CVE-2018-10871 389-ds-base: replication and the Retro Changelog plugin store ...
Status: NEW
Alias: CVE-2018-10871
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20180618,repor...
Keywords: Security
: 1591481 (view as bug list)
Depends On: 1592226 1592228 1684591 1595766
Blocks: 1591482
TreeView+ depends on / blocked
 
Reported: 2018-06-14 20:19 UTC by Laura Pardo
Modified: 2019-07-17 09:04 UTC (History)
8 users (show)

(edit)
By default, when the Replica and/or retroChangeLog plugins are enabled, 389-ds-base stores passwords in plaintext format in their respective changelog files. An attacker with sufficiently high privileges, such as root or Directory Manager, can query these files in order to retrieve plaintext passwords.
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

Description Laura Pardo 2018-06-14 20:19:40 UTC
By default, when the Replica and/or retroChangeLog plugins are enabled, 389-ds-base stores password in plaintext format in their respective changelog files.

An attacker with sufficiently high privileges, such as root or Directory Manager, can query these files in order to retrieve plaintext passwords.

Comment 2 Cedric Buissart 🐶 2018-06-18 08:49:57 UTC
Created 389-ds-base tracking bugs for this issue:

Affects: fedora-all [bug 1592226]

Comment 4 Cedric Buissart 🐶 2018-06-27 13:38:08 UTC
*** Bug 1591481 has been marked as a duplicate of this bug. ***

Comment 6 Cedric Buissart 🐶 2018-06-27 13:51:48 UTC
External References:

https://pagure.io/389-ds-base/issue/49789

Comment 9 Cedric Buissart 🐶 2018-06-27 15:02:48 UTC
Mitigation:

On 389-ds-base 1.3.1 and above: 
1- Deactivate clear password storing by default, to prevent new passwords to be logged.
-> in cn=config, set nsslapd-unhashed-pw-switch attribute to 'off' or 'nolog'

2- Trim changelog to ensure currently stored passwords are removed.
For Replication:
-> in cn=changelog5,cn=config, reduce nsslapd-changelogmaxentries, nsslapd-changelogtrim-interval and nsslapd-changelogmaxage
-> force a replication & wait for the changelogtrim-interval time
-> restore previous values

For RetroChangelog:
-> deactivate the plugin
-> restart directory server
-> reactivate the plugin
-> restart directory server


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