Update python/ql/src/Security/CWE-327/InsecureDefaultProtocol.ql

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
yoff
2021-02-26 10:56:48 +01:00
committed by GitHub
parent a067adbaf3
commit 7f7320ae4c

View File

@@ -23,7 +23,7 @@ CallNode unsafe_call(string method_name) {
not exists(result.getArg(0)) and
method_name = "ssl.SSLContext" and
// in version 3.4, flags were introduced to modify cotexts created with default values
(major_version() < 3 or minor_version() < 4)
(major_version() = 2 or major_version() = 3 and minor_version() < 4)
}
from CallNode call, string method_name