File size: 313 Bytes
96a9a65 | 1 2 3 4 5 6 7 8 9 10 | import os
import subprocess
def bad_practice():
user_input = input("Enter something: ")
os.system(user_input) # Bandit should flag shell injection (B602)
subprocess.call("ls -la", shell=True) # Another shell=True flag (B607)
password = "hardcoded_password_123" # Potential hardcoded password |