We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe783ac commit 0096dbeCopy full SHA for 0096dbe
src/pyspector/rules/built-in-rules.toml
@@ -84,6 +84,14 @@ remediation = "Avoid shell=True with subprocess.run. Pass commands as a list ins
84
ast_match = "Call(func.value.id=subprocess, func.attr=run)"
85
file_pattern = "*.py"
86
87
+[[rule]]
88
+id = "PY107"
89
+description = "Unsafe deserialization with 'yaml.load'."
90
+severity = "High"
91
+remediation = "Use 'yaml.safe_load()' instead of 'yaml.load()'."
92
+ast_match = "Call(func.value.id=yaml, func.attr=load)"
93
+file_pattern = "*.py"
94
+
95
# -------------------------------------------
96
# SECTION: Cryptographic Failures (OWASP A02:2021)
97
0 commit comments