Skip to content

[v16] Prevent loading default config in tctl on Windows#52189

Merged
rosstimothy merged 1 commit intobranch/v16from
tross/backport-52184/v16
Feb 14, 2025
Merged

[v16] Prevent loading default config in tctl on Windows#52189
rosstimothy merged 1 commit intobranch/v16from
tross/backport-52184/v16

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Feb 14, 2025

Backport #52184 to branch/v16

Changelog: Removed 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
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Feb 14, 2025
@rosstimothy rosstimothy added this pull request to the merge queue Feb 14, 2025
Merged via the queue into branch/v16 with commit 2c96f15 Feb 14, 2025
@rosstimothy rosstimothy deleted the tross/backport-52184/v16 branch February 14, 2025 21:57
@camscale camscale mentioned this pull request Mar 6, 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