[v13] Better control on user injected environment values#36134
Merged
jentfoo merged 1 commit intobranch/v13from Dec 29, 2023
Merged
[v13] Better control on user injected environment values#36134jentfoo merged 1 commit intobranch/v13from
jentfoo merged 1 commit intobranch/v13from
Conversation
This commit includes two changes: * In `environment` we expanded the list of MacOS environment values which should be filtered. It was demonstrated that these can be used to get code execution in MacOS. * In `reexec` we no longer provide the cmdmsg.Environment for the `teleport exec`. As part of the development of a9055bc it was attempted to fully clear out the environment, but testing showed that to be potentially problematic. It was believed the safest option was to use the cmd environment, however this introduces a new source of environment variables. Because this exec happens under `root` this is particularly dangerous (even more so when combined with the missed OSX values mentioned above). As such we now are only providing the filtered exec environment, which is a closer (but safer) option to the functionality prior to a9055bc.
tigrato
approved these changes
Dec 29, 2023
zmb3
approved these changes
Dec 29, 2023
AntonAM
approved these changes
Dec 29, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
v13 backport of PR #36132
changelog: macOS agent environment filtering documented under GHSA-vfxf-76hv-v4w4