We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3d2001 commit 5bb4a1aCopy full SHA for 5bb4a1a
python/ql/src/Security/CWE-295/MissingHostKeyValidation.ql
@@ -24,8 +24,9 @@ private API::Node paramikoSSHClientInstance() {
24
25
from DataFlow::CallCfgNode call, DataFlow::Node arg, string name
26
where
27
+ // see http://docs.paramiko.org/en/stable/api/client.html#paramiko.client.SSHClient.set_missing_host_key_policy
28
call = paramikoSSHClientInstance().getMember("set_missing_host_key_policy").getACall() and
- arg = call.getAnArg() and
29
+ arg in [call.getArg(0), call.getArgByName("policy")] and
30
(
31
arg = unsafe_paramiko_policy(name).getAUse() or
32
arg = unsafe_paramiko_policy(name).getReturn().getAUse()
0 commit comments