Skip to content

[v15] Prevent loading default config in tctl on Windows#52190

Merged
rosstimothy merged 1 commit intobranch/v15from
tross/backport-52184/v15
Feb 14, 2025
Merged

[v15] Prevent loading default config in tctl on Windows#52190
rosstimothy merged 1 commit intobranch/v15from
tross/backport-52184/v15

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #52184 to branch/v15

Changelog: Remove the ability of tctl to load the default configuration file on Windows.

On Windows tctl will attempt to load a teleport config file from
the default path of C:\etc\teleport.yaml. However, on Windows,
C:\etc\ does not exist by default, and may be created by any user.

This could potentially allow an unprivileged user to trick tctl
into loading a malicious teleport.yaml file and perform some kind
of MITM attack. In practice, this attack would have to be quite
sophisticated since tctl does check the data directory defined in
the config file and requires a host_uuid and a valid admin identity
before proceeding with using the local credentials.

If this behavior is to be restored in the future, the default
config path on Windows should be changed to something that respects
Windows path conventions.
@github-actions github-actions Bot added backport size/sm tctl tctl - Teleport admin tool labels Feb 14, 2025
@rosstimothy rosstimothy added this pull request to the merge queue Feb 14, 2025
Merged via the queue into branch/v15 with commit f01d202 Feb 14, 2025
@rosstimothy rosstimothy deleted the tross/backport-52184/v15 branch February 14, 2025 21:46
@camscale camscale mentioned this pull request Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants