Files
codeql/python/ql/test/query-tests/Security/CWE-327-InsecureDefaultProtocol/InsecureProtocol.py
Owen Mansel-Chan 8e07690049 Python
2026-06-10 22:57:42 +02:00

8 lines
137 B
Python

import ssl
# secure versions
ssl.wrap_socket(ssl_version=ssl.PROTOCOL_TLSv1_2)
# possibly insecure default
ssl.wrap_socket() # $ Alert