[17234] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

[krbdev.mit.edu #9245] git commit

daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Mon Nov 9 12:02:40 2026

From: "Greg Hudson via RT" <rt@krbdev.mit.edu>
In-Reply-To: 
Message-ID: <rt-4.4.3-2-3131304-1794243757-943.9245-5-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #9245":;
Date: Mon, 09 Nov 2026 12:02:37 -0500
MIME-Version: 1.0
Reply-To: rt@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu


<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@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(-)

_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs

home help back first fref pref prev next nref lref last post