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