Skip to content

[v13] Quote user supplied inputs provided to scripts to avoid RCE#39839

Merged
jentfoo merged 1 commit intobranch/v13from
jent/script_param_rce_fix-v13
Mar 26, 2024
Merged

[v13] Quote user supplied inputs provided to scripts to avoid RCE#39839
jentfoo merged 1 commit intobranch/v13from
jent/script_param_rce_fix-v13

Conversation

@jentfoo
Copy link
Copy Markdown
Contributor

@jentfoo jentfoo commented Mar 26, 2024

Backport #39644 to branch/v14 (conflicts with missing join implementations)

changelog: Fix for possible phishing links which could result in code execution with install and join scripts

* Quote user supplied inputs provided to scripts to avoid RCE

This change introduces the func `utils.UnixShellQuote` which will quote any inputs which could potentially allow execution or script escape.
This is utilized to ensure that scripts produced from a potential Phishing link could not contain code execution which may expose a user.

* awsAccessGraphOIDCSync: Ensure role parameter is quoted correctly

* join_tokens: Move shell quote to `getJoinScript` rather than where parameters are extracted

This will increase safety moving forward, but it requires a more conservative quoting strategy.
@jentfoo jentfoo added this pull request to the merge queue Mar 26, 2024
Merged via the queue into branch/v13 with commit ee79a6e Mar 26, 2024
@jentfoo jentfoo deleted the jent/script_param_rce_fix-v13 branch March 26, 2024 16:05
tcsc added a commit that referenced this pull request Mar 27, 2024
* Fixed possible phishing links which could result in code execution with install and join scripts. [#39839](#39839)
* Fixed MFA checks not being prompted when joining a session. [#39816](#39816)
* Fixed broken SSO login landing page on certain versions of Google Chrome. [#39721](#39721)
* Updated Electron to v29 in Teleport Connect. [#39659](#39659)
* Fixed a bug in the discovery script failing when `jq` was not installed. [#39601](#39601)
@tcsc tcsc mentioned this pull request Mar 27, 2024
github-merge-queue Bot pushed a commit that referenced this pull request Mar 28, 2024
* Fixed possible phishing links which could result in code execution with install and join scripts. [#39839](#39839)
* Fixed MFA checks not being prompted when joining a session. [#39816](#39816)
* Fixed broken SSO login landing page on certain versions of Google Chrome. [#39721](#39721)
* Updated Electron to v29 in Teleport Connect. [#39659](#39659)
* Fixed a bug in the discovery script failing when `jq` was not installed. [#39601](#39601)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants