Tainted flow: 'key_path' from os.environ.get (line 293, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
return # Safe: fixed argument list, no user input, no shell=True subprocess.run([ "openssl", "req", "-x509", "-nodes", "-newkey", "rsa:2048", "-keyout", str(key_path), "-out", str(cert_path),- Confidence
- 62% confidence
- Finding
- subprocess.run([ "openssl", "req", "-x509", "-nodes", "-newkey", "rsa:2048", "-keyout", str(key_path), "-out", str(cert_path), "-days", "3650", "-subj", "/C
