Files
codeql/python/ql/test/query-tests/Security/CWE-312-CleartextStorage/test.py
2021-06-23 10:50:04 +02:00

11 lines
228 B
Python

def get_cert():
return "<CERT>"
def write_cert(filename):
cert = get_cert()
with open(filename, "w") as file:
file.write(cert) # NOT OK
lines = [cert + "\n"]
file.writelines(lines) # NOT OK