Tainted flow: 'STATE_FILE' from os.environ.get (line 9, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def _save_state(state): os.makedirs(os.path.dirname(STATE_FILE), exist_ok=True) with open(STATE_FILE, "w") as f: json.dump(state, f, ensure_ascii=False, indent=2)- Confidence
- 94% confidence
- Finding
- with open(STATE_FILE, "w") as f:
