RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1652918 - cracklib accepts wordlist passwords as secure
Summary: cracklib accepts wordlist passwords as secure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cracklib
Version: 8.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: 8.0
Assignee: Tomas Mraz
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks: 986401
TreeView+ depends on / blocked
 
Reported: 2018-11-23 14:32 UTC by Hubert Kario
Modified: 2019-06-14 02:04 UTC (History)
2 users (show)

Fixed In Version: cracklib-2.9.6-15.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-14 02:04:53 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hubert Kario 2018-11-23 14:32:07 UTC
Description of problem:
when the wordlist is provided back to cracklib for checking, some entries are accepted as secure

Version-Release number of selected component (if applicable):
cracklib-2.9.6-14.el8.x86_64

How reproducible:
always/common

Steps to Reproduce:
1. create-cracklib-dict /usr/share/dict/words; cracklib-check < /usr/share/dict/words | grep ': OK'

1. for j in `seq 1 14`; do tr -cd '[:alpha:]' < /dev/urandom | dd bs=1 count=10  2>/dev/null >> wordlist; echo >> wordlist; done
2. create-cracklib-dict wordlist
3. cracklib-check < wordlist | grep ': OK'

Actual results:
dichlorodiphenyltrichloroethane: OK
half-embracinghalf-embracingly: OK

Randomly:
AgplOHtGxJ: OK

Sometimes it also prints:
/usr/share/cracklib/pw_dict: error reading header

Expected results:
no passwords from wordlist accepted

Additional info:
regression compared to bug 986401

Comment 1 Tomas Mraz 2018-11-23 15:08:19 UTC
I cannot reproduce the issue with random words nor with /usr/share/cracklib/pw_dict: error reading header

The issue with the two long passwords might be related to dropped lookup patch. If you want this fixed in 8.0, please provide a qa_ack+.

Comment 2 Tomas Mraz 2018-11-26 15:25:14 UTC
OK, there are two issues. The cracklib-format script incorrectly filters out words longer than 29 characters where it should be filtering out words longer than 31 characters instead. I will correct that.

And there is a small regression in the password lookup algorithm, which I am going to correct as well.

Please note that even with these fixes words from the words dictionary longer than 31 characters can still be accepted by cracklib-check and that running create-cracklib-dict on wordlist containing only words longer than 31 characters will not create a valid pw_dict file and thus the cracklib-check will fail with error trying to open it.


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