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

test #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

test #33

wants to merge 1 commit into from

Conversation

vivekkhimani
Copy link
Collaborator

No description provided.

import yaml


yaml.load(Loader=yaml.Loader)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fukkkdsafsadfadsadddblahDetected a possible YAML deserialization vulnerability. yaml.unsafe_load, yaml.Loader, yaml.CLoader, and yaml.UnsafeLoader are all known to be unsafe methods of deserializing YAML. An attacker with control over the YAML input could create special YAML input that allows the attacker to run arbitrary Python code. This would allow the attacker to steal files, download and install malware, or otherwise take over the machine. Use yaml.safe_load or yaml.SafeLoader instead. blah blah.blah

Suggested change
yaml.load(Loader=yaml.Loader)
yaml.load(Loader=yaml.Loader)
Ignore this finding from avoid-pyyaml-load.


yaml.load(Loader=yaml.Loader)

yaml.unsafe_load("something")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fukkkdsafsadfadsadddblahDetected a possible YAML deserialization vulnerability. yaml.unsafe_load, yaml.Loader, yaml.CLoader, and yaml.UnsafeLoader are all known to be unsafe methods of deserializing YAML. An attacker with control over the YAML input could create special YAML input that allows the attacker to run arbitrary Python code. This would allow the attacker to steal files, download and install malware, or otherwise take over the machine. Use yaml.safe_load or yaml.SafeLoader instead. blah blah.blah

Suggested change
yaml.unsafe_load("something")
yaml.safe_load("something")
Ignore this finding from avoid-pyyaml-load.

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