[krbdev.mit.edu #9245] git commit

Greg Hudson via RT rt at krbdev.mit.edu
Mon Nov 9 12:02:37 EST 2026


<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=9245 >


Move krb5.ini from ProgramData to Program Files

On Windows, ProgramData (aka CSIDL_COMMON_APPDATA) by default has
permissions allowing any user to create files and directories, and
modify files and directories they have created, similar to /tmp on
UNIX-like systems.  This permission model is not suited for krb5.ini,
because the installer cannot reasonably determine whether a
pre-existing krb5.ini (or its containing subdirectories) was placed
there by a previous installation or was pre-created with malicious
contents by an unprivileged user.

Change the default per-machine location for krb5.ini to
%ProgramFiles%\MIT\Kerberos5.  This default applies if the filename
is not configured in the registry and no krb5.ini file exists under
%AppData% for the current user.

Discovered by Aisle Research.

(cherry picked from commit 55302e26b4db994c6438cd2899562dd9b8ac195c)

https://github.com/krb5/krb5/commit/cfe83fa6c69c4c0b824f83cb3e77ffef7d9379c1
Author: Greg Hudson <ghudson at mit.edu>
Commit: cfe83fa6c69c4c0b824f83cb3e77ffef7d9379c1
Branch: krb5-1.22
 src/lib/krb5/os/init_os_ctx.c       |  8 +++++---
 src/windows/README                  | 13 ++++++-------
 src/windows/installer/wix/files.wxi | 13 +++----------
 3 files changed, 14 insertions(+), 20 deletions(-)



More information about the krb5-bugs mailing list