]> eyrie.org Git - kerberos/krb5-strength.git/blob - NEWS
Add dependabot configuration
[kerberos/krb5-strength.git] / NEWS
1                     User-Visible krb5-strength Changes
2
3 krb5-strength 3.3 (unreleased)
4
5     heimdal-history now requires the Perl modules Const::Fast and
6     JSON::MaybeXS instead of Readonly and JSON.
7
8     Explicitly erase the copy of the password made in the Heimdal plugin.
9
10     Update to rra-c-util 10.5:
11
12     * Assume a working snprintf rather than supplying a replacement.
13     * Fix detection of reallocarray on NetBSD.
14     * Check that Kerberos header files were found during configure.
15     * Use AS_ECHO in all Autoconf macros.
16     * Always use lib32 or lib64 if it exists, even on Debian.
17     * Fix rejection of unknown Clang warning flags.
18     * Disable -Wreserved-identifier for Clang warning builds.
19
20 krb5-strength 3.2 (2020-05-17)
21
22     Add new -c (--check-only) option to heimdal-history to check whether a
23     password would be accepted without updating the history or password
24     length databases.  Based on work by macrotex.
25
26     Increase hash iterations for heimdal-history by roughly a factor of
27     four to increase the time required for a password hash to about 0.1
28     seconds on modern hardware.  This will affect newly-stored history
29     entries but will not invalidate existing password history entries.
30
31     Support building without CrackLib support by passing
32     --without-cracklib to configure.  This makes the code a bit simpler
33     and lighter if you don't intend to ever use the CrackLib support.
34
35     krb5-strength-wordlist now requires Perl 5.010 or later.
36
37     Use explicit_bzero instead of memset, where available, to overwrite
38     copies of passwords before freeing memory.  This reduces the lifetime
39     of passwords in memory.
40
41     Skip tests that require the stronger rule configuration in the
42     embedded CrackLib when built against system CrackLib.  This avoids
43     test failures when built with system CrackLib.
44
45     Rework the check-valgrind target to use the new C TAP Harness valgrind
46     support and automatically check the valgrind log files for errors at
47     the end of the test suite.
48
49     Add SPDX-License-Identifier headers to all substantial source files
50     other than those in the bundled version of CrackLib.
51
52     Update to rra-c-util 8.2:
53
54     * Implement explicit_bzero with memset if it is not available.
55     * Reformat all C source using clang-format 10.
56     * Work around Test::Strict not skipping .git directories.
57     * Fix warnings with perltidy 20190601 and Perl::Critic 1.134.
58     * Improve check for obsolete strings.
59     * Use a more standard all-permissive license.
60     * Add SPDX-License-Identifier headers to all substantial source files.
61     * Skip more build system files when running the test suite.
62     * Fix warnings with Clang 10, GCC 10, and the Clang static analyzer.
63     * Exclude more valgrind false positives with Kerberos libraries.
64     * Improve support for AIX's bundled Kerberos.
65
66     Update to C TAP Harness 4.7:
67
68     * Fix warnings with GCC 10.
69     * Reformat all C source using clang-format 10.
70     * Fixed malloc error checking in bstrndup.
71     * Add support for valgrind testing via test list options.
72     * Report test failures as left and right, not wanted and seen.
73     * Fix is_string comparisons involving NULL pointers and "(null)".
74     * Add SPDX-License-Identifier headers to all substantial source files.
75
76 krb5-strength 3.1 (2016-12-25)
77
78     A new configuration option, cracklib_maxlen, can be set to skip
79     CrackLib checks of passwords longer than that length.  The CrackLib
80     rules were designed in a world in which most passwords were four to
81     eight characters long and tend to spuriously reject longer passwords.
82     SQLite dictionaries work better for checking longer passwords and
83     passphrases.  Patch from Jorj Bauer.
84
85     The require_classes configuration option can now require a particular
86     number of character classes in the password (whatever those classes
87     are).  Patch from Toby Blake.
88
89     Change the error messages returned for passwords that fail strength
90     checking to start with a capital letter.  This appears to be more
91     consistent with the error message conventions used inside Heimdal.
92
93     Change the DB_File::Lock calling method in heimdal-history to work
94     properly with the (buggy) CPAN version of DB_File::Lock, instead of
95     relying on Debian's patched version.  Thanks to Bernt Jernberg for the
96     report.
97
98     Apply the SuSE patch for a buffer overflow when using duplicate rules
99     to the embedded CrackLib.  No duplicating rules are used in the rule
100     set included with this package, and this package doesn't expose the
101     general API, so this was not exploitable, but best to close the latent
102     issue.  (The other recent CrackLib vulnerability, CVE-2016-6318,
103     doesn't apply since all the GECOS manipulation code was removed from
104     the embedded CrackLib in this package.)
105
106     Patch the mkdict and packer in the embedded copy of CrackLib to force
107     C locale when sorting (avoiding a corrupted dictionary) and warn and
108     skip out-of-order words rather than creating a corrupted dictionary.
109     Patch from Mark Sirota.
110
111     Configuration instrutions are now in the heimdal-history and
112     heimdal-strength man pages and a new krb5-strength man page (which
113     documents configuration of the KDC plugin) instead of the README file
114     to make it more accessible after the software has been installed.
115
116     Update to rra-c-util 6.2:
117
118     * Use calloc in preference to malloc wherever appropriate.
119     * Use reallocarray in preference to realloc wherever appropriate.
120     * Suppress warnings from Kerberos headers under make warnings.
121     * Support the embedded Kerberos in Solaris 10 in library probes.
122     * Add missing va_end in xasprintf implementation.
123     * Fix logic in Test::RRA::Automake for new Automake dist checking.
124     * Fix all return-value checks for snprintf to avoid off-by-one error.
125     * Update warning flags for make warnings to GCC 6.1.0.
126     * Fix Test::RRA::Config for new "do" semantics in Perl 5.22.2.
127     * Add a new test for obsolete eyrie.org URLs.
128     * Require Test::Strict 0.25 or newer for Perl strictness checks.
129
130     Update to C TAP Harness 4.1:
131
132     * Replace all remaining uses of sprintf.
133     * Test lists may now have comments and blank lines.
134     * runtests -v will show the complete output from a test.
135     * Fix segfault in runtests when given an empty test list.
136     * Tests use C_TAP_SOURCE and C_TAP_BUILD instead of SOURCE and BUILD.
137
138 krb5-strength 3.0 (2014-03-25)
139
140     The krb5-strength plugin and heimdal-strength program now support a
141     SQLite password dictionary.  This format of dictionary can detect any
142     password within edit distance one of a dictionary word, meaning that
143     the dictionary word can be formed by adding, removing, or changing a
144     single character in the password.  A SQLite password dictionary can be
145     used alone or in combination with any of the other supported
146     dictionary types.  SQLite dictionary support is based on work by David
147     Mazières.
148
149     cdbmake-wordlist has been renamed to krb5-strength-wordlist.
150     Generating CDB dictionaries now requires the -c option; see the
151     documentation for more information.  A SQLite database of dictionary
152     words can now be created instead, using the -s option.
153
154     A password history implementation for Heimdal is now included.  This
155     is a separate Perl program, heimdal-history, that stacks with the
156     external program implementation of strength checking.  It is not
157     available in the form of a plugin, only as a Heimdal external password
158     quality check.  (MIT Kerberos provides its own password history
159     mechanism.)  This program has more extensive Perl module dependencies
160     than the other programs in this distribution.
161
162     A new configuration option, minimum_different, can be set to require
163     that passwords contain at least that many unique characters.  This can
164     be used to reject long strings of identical characters or short
165     patterns, which may pass other checks but still be too easy to guess.
166
167     Update to rra-c-util 5.4:
168
169     * Fix portable/krb5.h build with a C++ compiler.
170     * Use Lancaster Consensus environment variables to control tests.
171     * Work around perltidy bug that leaves behind stray log files.
172
173     Update to C TAP Harness 3.0:
174
175     * Reopen standard input to /dev/null when running a test list.
176     * Don't leak extraneous file descriptors to tests.
177
178 krb5-strength 2.2 (2013-12-16)
179
180     More complex character class requirements can be specified with the
181     configuration option require_classes.  This option lists the character
182     classes the password must contain.  These restrictions may be
183     qualified with password length ranges, allowing the requirements to
184     change with the length of the password.  See README for more details
185     and the option syntax.
186
187     cdbmake-wordlist now supports filtering out words based on maximum
188     length (-L) and arbitrary user-provided regular expressions (-x).  It
189     also supports running in filter mode to produce a new wordlist instead
190     of a CDB file (-o).
191
192     Close a file descriptor and memory leak in the included version of
193     CrackLib.  This problem was already fixed in CrackLib 2.9.0.
194
195     Update to rra-c-util 4.12:
196
197     * Properly check the return status of snprintf and friends.
198
199     Update to C TAP Harness 2.3:
200
201     * Suppress lazy plans and test summaries if the test failed with bail.
202     * Add warn_unused_result gcc attributes to relevant functions.
203
204 krb5-strength 2.1 (2013-10-10)
205
206     Fix the package build when CDB support is disabled or TinyCDB was not
207     found.
208
209     Some of the password rejection error messages have been changed to
210     make them more accurate or comprehensible to the user.
211
212     Passing --with-tinycdb to configure now correctly makes TinyCDB
213     support mandatory without adding bogus directories to the library and
214     include search paths.
215
216 krb5-strength 2.0 (2013-10-07)
217
218     Add support for the MIT Kerberos password quality plugin interface,
219     available in MIT Kerberos 1.9 and later, contributed by Greg Hudson
220     and MIT.  Drop the patch for MIT Kerberos 1.4 (and hence support for
221     versions of MIT Kerberos prior to 1.9).  A dictionary path set in
222     krb5.conf takes precedence over the dictionary path provided by MIT
223     Kerberos when the plugin is initialized, if both are set, to allow the
224     dict_path configuration setting to be used for other plugins while
225     using a separate dictionary for krb5-strength.
226
227     The default installation path for this plugin is now
228     /usr/local/lib/krb5/plugins/pwqual/strength.so (for both MIT and
229     Heimdal), assuming a --libdir setting of /usr/local/lib.  This may
230     require updates to the Kerberos KDC configuration or moving the plugin
231     when upgrading from earlier versions.
232
233     Add support for building with TinyCDB and then checking passwords
234     against a CDB database.  There is a new password_dictionary_cdb
235     krb5.conf configuration setting that configures a CDB directory to
236     use.  The tests with a CDB dictionary are much simpler: passwords are
237     rejected if found in the dictionary either literally, with one or two
238     characters removed from the start or end, or with one character
239     removed from both the start and the end.  Both a CrackLib and a CDB
240     dictionary can be specified to check both dictionaries.  A new
241     cdbmake-wordlist utility (written in Perl) is included to ease the
242     process of creating a CDB database from a simple word list.
243
244     A minimum password length can now be enforced directly via the plugin
245     or external check program without relying on CrackLib.  To set a
246     minimum password length, add a minimum_length setting to the
247     krb5-strength section of [appdefaults] in krb5.conf.
248
249     New boolean settings require_ascii_printable and require_non_letter
250     are supported in the krb5-strength setting of [appdefaults] in
251     krb5.conf.  The former rejects passwords containing characters other
252     than printable ASCII characters (including space), and the latter
253     requires that passwords contain at least one character that is not a
254     letter (upper or lower case) or a space.
255
256     The plugin can now be configured without a dictionary, in which case
257     only checks for a password based on the principal and the simpler
258     checks available through the new configuration variables are done.
259     This mode is mostly useful for testing, since such simple checking can
260     more easily be done via less complex password strength configurations.
261
262     The check for passwords based on the principal now check for passwords
263     formed by reversing or adding numbers before and after each separate
264     component of the principal.  This will catch passwords based on the
265     realm or components of the realm, which will often catch passwords
266     based on the name of the local institution.
267
268     The plugin now sets the Kerberos error message in the context to pass
269     error information, resulting in higher-quality error reporting in the
270     MIT Kerberos plugin.
271
272     CrackLib checks for passwords where a character is a simple increment
273     or decrement of the previous character.  In previous versions, the
274     embedded version of CrackLib allowed at most four such occurrences in
275     the entire password.  This results in false positives on long
276     passphrases, since such accidental letter relationships aren't
277     uncommon in human languages.  Change the embedded CrackLib to allow
278     one such simple increment for every three characters in the password,
279     which tightens the check somewhat for shorter passwords and loosens it
280     considerably for longer passwords.
281
282     Expect the Heimdal password strength checking plugin header in
283     kadm5/kadm5-pwcheck.h instead of outside of the kadm5 directory.  This
284     is the path used by current versions of Heimdal.  Drop support for
285     older versions of Heimdal that don't install this header file.
286
287     Update to rra-c-util 4.9:
288
289     * Probe for Kerberos headers using file checks instead of compiles.
290     * Improve probe for the Heimdal libroken library.
291     * Always build with large file support.
292     * Conditionally call AM_PROG_AR for portability to new Autotools.
293
294     Update to C TAP Harness 2.2:
295
296     * Allow more easily running single programs under tests/runtests.
297     * Flush the output from the test harness after each test.
298
299 krb5-strength 1.1 (2012-05-11)
300
301     Change the minimum password length in the embedded CrackLib to 8.
302
303     Reject passwords formed from the username portion of the principal
304     with digits appended.
305
306     In the embedded CrackLib, also check for a duplicated dictionary word.
307
308     Support linking with the system CrackLib instead of the embedded and
309     stricter copy by passing --with-cracklib to configure.
310
311     Fix variable sizes in the embedded CrackLib on 64-bit platforms.  This
312     may fix interoperability problems with databases created on platforms
313     with a different native integer size.  Thanks, Karl Lehnberger and
314     Benj Carson.
315
316     Stop using local in the test suite for portability to Solaris /bin/sh.
317
318     Update to rra-c-util 4.4:
319
320     * Use PATH_KRB5_CONFIG to override krb5-config location.
321     * Fix probing for ibm_svc/krb5_svc.h on AIX.
322     * Support Heimdal libraries without libroken, like OpenBSD.
323     * Fix manual Kerberos library probing without transitive dependencies.
324     * Support systems that only have krb5/krb5.h.
325     * Pass --deps to krb5-config in the non-reduced-dependencies case.
326     * Silence __attribute__ warnings on more compilers.
327     * Update warning flags for make warnings.
328     * Flesh out MAINTCLEANFILES to remove autogen results.
329     * Add notices to all files copied from rra-c-util.
330
331     Update to C TAP Harness 1.12:
332
333     * Drop is_double from the C TAP library to avoid requiring -lm.
334     * Avoid using local in the shell libtap.sh library.
335     * Silence __attribute__ warnings on more compilers.
336     * runtests now frees all allocated resources on exit.
337     * Fix runtests to still honor SOURCE and -s without BUILD and -b.
338     * Add tests/HOWTO documenting how to add new tests.
339     * Ensure correct output ordering in test results.
340     * Add -h and a better usage message to tests/runtests.
341
342 krb5-strength 1.0 (2010-02-16)
343
344     Add heimdal-strength, a program that checks password strength using
345     the protocol for a Heimdal external check program.
346
347     The shared module now also exports the interface expected by Heimdal's
348     dynamically loaded password strength checking API and can be used as a
349     Heimdal kadmin plugin.
350
351     Add a new plugin API for MIT Kerberos modelled after the plugin API
352     used for other MIT Kerberos plugins.  Thanks to Marcus Watts for
353     substantial research and contributions to the interface design.  This
354     work is incomplete in this release, missing the corresponding patch to
355     MIT Kerberos.
356
357     Fixed the data format written by the included packer program to add
358     enough nul bytes at the end of the data.  Previously, there was not
359     enough trailing nul bytes for the expected input format, leading to
360     uninitialized memory reads in the password lookup.
361
362     Add a test suite using the driver and library from C TAP Harness 1.1.
363
364     Add portability code for platforms without a working snprintf or other
365     deficiencies and updated the code to take advantage of those
366     guarantees.
367
368 krb5-strength 0.5 (2007-07-18)
369
370     The check of the password against the principal checked against the
371     fully-qualified principal, which is not the usual problem.
372     Additionally check that the password doesn't match the principal with
373     the realm removed or the reverse of that (case-insensitive).
374
375 krb5-strength 0.4 (2007-03-28)
376
377     The patches directory was omitted from the distribution.  Really
378     include it.
379
380 krb5-strength 0.3 (2007-03-23)
381
382     Initial public release.  Includes a patch for MIT Kerberos, a slightly
383     modified version of CrackLib, and glue wrapped around CrackLib to make
384     a loadable module.