Tainted flow: 'LOCK_FILE' from os.environ.get (line 18, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def save_lock_file(): """Save server port to lock file""" try: with open(LOCK_FILE, 'w') as f: f.write(str(CONTROL_PORT)) os.chmod(LOCK_FILE, 0o666) # Make it readable by all except Exception as e:- Confidence
- 89% confidence
- Finding
- with open(LOCK_FILE, 'w') as f:
