Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

safely deserialize k8 yaml#4071

Merged
anthonywoo merged 4 commits intomasterfrom
awoo/k8-parse-safe-load
Aug 8, 2023
Merged

safely deserialize k8 yaml#4071
anthonywoo merged 4 commits intomasterfrom
awoo/k8-parse-safe-load

Conversation

@anthonywoo
Copy link
Copy Markdown
Contributor

Note: Samson is a public repo, do not include Zendesk-internal information, urls, etc.

Using YAML.load_stream is unsafe and allows instantiating arbitrary classes which may lead to remote code execution (RCE)

I had to use multiple streams because Samson needs to support multiple documents in a single yaml file

References

  • Jira link:

Risks

  • Medium? Some k8 deploys may fail if it is using a disallowed class

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants