Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace yaml.load with yaml.safe_load #276

Merged
merged 2 commits into from
May 11, 2023
Merged

Replace yaml.load with yaml.safe_load #276

merged 2 commits into from
May 11, 2023

Conversation

Fleker
Copy link
Collaborator

@Fleker Fleker commented May 11, 2023

A specific kind of YAML file with the text

!!python/object/apply:os.system ["touch /tmp/vulnerable.txt"]

may cause the underlying command to be executed, which is not intended. This change loads the YAML file in a safer, non-executable way.

@Fleker Fleker merged commit 5a6e904 into google:master May 11, 2023
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.

1 participant