Skip to content

Protect against user injection for registration CLI page#823

Merged
juanfont merged 6 commits intojuanfont:mainfrom
kradalby:sanitise-machine-key-url
Oct 4, 2022
Merged

Protect against user injection for registration CLI page#823
juanfont merged 6 commits intojuanfont:mainfrom
kradalby:sanitise-machine-key-url

Conversation

@kradalby
Copy link
Copy Markdown
Collaborator

This commit addresses a potential issue where we allowed unsanitised content to be passed through a go template without validation.

We now try to unmarshall the incoming node key and fails to render the template if it is not a valid node key.

Signed-off-by: Kristoffer Dalby kristoffer@dalby.cc

This commit addresses a potential issue where we allowed unsanitised
content to be passed through a go template without validation.

We now try to unmarshall the incoming node key and fails to render the
template if it is not a valid node key.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
@kradalby kradalby requested a review from juanfont as a code owner September 23, 2022 08:42
kradalby and others added 5 commits September 23, 2022 10:44
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants