[krbdev.mit.edu #9245] git commit
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Mon Nov 9 11:59:29 EST 2026
Mon Nov 09 11:59:29 2026: Request 9245 was acted upon.
Transaction: Ticket created by ghudson at mit.edu
Queue: krb5
Subject: git commit
Owner: ghudson at mit.edu
Requestors:
Status: new
Ticket <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.
https://github.com/krb5/krb5/commit/55302e26b4db994c6438cd2899562dd9b8ac195c
Author: Greg Hudson <ghudson at mit.edu>
Commit: 55302e26b4db994c6438cd2899562dd9b8ac195c
Branch: master
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