Bug 985356 - Passwords with current year/date are accepted as secure
Passwords with current year/date are accepted as secure
Status: NEW
Product: Fedora
Classification: Fedora
Component: libpwquality (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2013-07-17 06:41 EDT by Hubert Kario
Modified: 2015-05-29 05:14 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hubert Kario 2013-07-17 06:41:58 EDT
Description of problem:
Password based on dictionary word with simple addition are accepted as secure. If I pick a dictionary word and add current date or year the password is accepted and given high security rating.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
echo abnegating2013 | pwscore
echo abnegating2010 | pwscore
echo abnegating1980 | pwscore
echo abnegating0717 | pwscore
echo abnegating1707 | pwscore

Actual results:
[root@localhost ~]# echo abnegating2013 | pwscore
[root@localhost ~]# echo abnegating2010 | pwscore
[root@localhost ~]# echo abnegating1980 | pwscore
[root@localhost ~]# echo abnegating0717 | pwscore
[root@localhost ~]# echo abnegating1707 | pwscore

Expected results:
Password quality check failed:
 The password fails the dictionary check - it is based on a dictionary word

for first two and low security rating for the latter three.

Additional info:
The accepted password have very low guessing entropy.

Assuming 10bit entropy for the base password -- in line with NIST SP 800-63-1 -- we get:
The password with current year will have 11bits of guessing entropy - the user followed the "add current year" rule which adds 1 bit of entropy.
Password with recent year (last 8 years) will have around 13 bits of guessing entropy - very likely password reuse from some earlier system.
Password with a year in this or past century is likely the birth year of the user, the estimate of last 50 years gives a password with 15.5 bits of guessing entropy -- enough for Level 1 system, but definitely should not be marked as strong (score > 50).
Password with a date will have around 18.5 bits of guessing entropy -- enough for a Level 1 system, but, again, should not be marked as strong.
Comment 1 Tomas Mraz 2013-07-17 10:42:13 EDT
I am sorry but I disagree with this assessment of entropy estimate. You cannot add only one bit of entropy per rule "add a current year".

All of these passwords should pass the basic checks. Maybe the security rating should be lower.
Comment 2 Hubert Kario 2013-07-17 11:12:14 EDT
Adding current year is exactly what users tend to do, and this is what people cracking passwords try first.

If it's one of the first rules that is used, it has minimal guessing entropy => gets 1 bit estimate.

See https://www.owasp.org/images/a/af/2011-Supercharged-Slides-Redman-OWASP-Feb.pdf slide 36 for examples.
RockYou list is also full of examples with recent year (as of the leak date), few statistics:

$ wc -l rockyou.txt # no duplicates
14344391 rockyou.txt
$ grep 2010 rockyou.txt  | wc -l
$ grep 2009 rockyou.txt  | wc -l
$ grep 2008 rockyou.txt  | wc -l
$ grep 2007 rockyou.txt  | wc -l
$ grep 2006 rockyou.txt  | wc -l
$ grep 2005 rockyou.txt  | wc -l
$ grep 2004 rockyou.txt  | wc -l
$ grep 2003 rockyou.txt  | wc -l
$ grep 2002 rockyou.txt  | wc -l
$ grep 2001 rockyou.txt  | wc -l
$ grep 2000 rockyou.txt  | wc -l

So, over 1% of passwords have "recent year" in them.
Comment 3 Fedora End Of Life 2013-09-16 10:34:55 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.

More information and reason for this action is here:
Comment 4 Fedora End Of Life 2015-05-29 05:11:19 EDT
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

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