Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44d62df

Browse files
committed
Python: Fix model of TLS and add reference
1 parent 470b4d8 commit 44d62df

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

python/ql/src/Security/CWE-327/TlsLibraryModel.qll

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ abstract class UnspecificContextCreation extends ContextCreation, ProtocolUnrest
7171
override DataFlow::CfgNode getContext() { result = this }
7272

7373
override ProtocolVersion getUnrestriction() {
74+
// see https://www.openssl.org/docs/man1.1.0/man3/TLS_method.html
7475
family = "TLS" and
75-
result in ["TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"]
76+
result in ["SSLv3", "TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"]
7677
or
7778
// This can negotiate a TLS 1.3 connection (!)
78-
// see https://docs.python.org/3/library/ssl.html#ssl-contexts
79+
// see
80+
// - https://docs.python.org/3/library/ssl.html#ssl-contexts
81+
// - https://www.openssl.org/docs/man1.0.2/man3/TLSv1_method.html
7982
family = "SSLv23" and
8083
result in ["SSLv2", "SSLv3", "TLSv1", "TLSv1_1", "TLSv1_2", "TLSv1_3"]
8184
}

0 commit comments

Comments
 (0)