mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Update python/ql/src/Security/CWE-327/InsecureDefaultProtocol.ql
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user