Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent loading default config in tctl on Windows (#52188)
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.
- Loading branch information