mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-30 18:29:21 +08:00
The token value is provided via the HTTP request and fed into the node join script. This could allow an attacker to generate a node-join script with malicious code included. Fix this by validating that tokens are valid and exist in the backend. Additionally, we recently added the ability to specify labels via the node-labels query parameter, which is also user-controlled. Since this functionality was never integrated in the UI, we remove it here and will add an alternative implementation in the future. Also use single quotes in script to prevent expansion