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.
py/paramiko-missing-host-key-validation
1 parent 4e49df1 commit a5a0861Copy full SHA for a5a0861
python/ql/test/query-tests/Security/CWE-295-MissingHostKeyValidation/paramiko_host_key.py
@@ -11,3 +11,10 @@
11
client.set_missing_host_key_policy(AutoAddPolicy()) # bad
12
client.set_missing_host_key_policy(RejectPolicy()) # good
13
client.set_missing_host_key_policy(WarningPolicy()) # bad
14
+
15
+# different import
16
17
+import paramiko
18
19
+client = paramiko.SSHClient()
20
+client.set_missing_host_key_policy(paramiko.AutoAddPolicy) # bad
0 commit comments