Skip to content

Semgrep testing 96#39

Open
vivekkhimani wants to merge 2 commits into
masterfrom
semgrep-testing-96
Open

Semgrep testing 96#39
vivekkhimani wants to merge 2 commits into
masterfrom
semgrep-testing-96

Conversation

@vivekkhimani

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread test.py
import yaml


yaml.load(Loader=yaml.Loader)

@semgrep-code-torchfl-org semgrep-code-torchfl-org Bot Aug 9, 2023

Copy link
Copy Markdown

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

Ignore this finding from avoid-pyyaml-load.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

/semgrep ignore something

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

/semgrep ignore something more

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