Tainted flow: 'state_path' from os.environ.get (line 247, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
try: state_path.parent.mkdir(parents=True, exist_ok=True) state["byte_offset"] = new_offset with open(state_path, "w", encoding="utf-8") as f: _json.dump(state, f) except Exception: pass- Confidence
- 86% confidence
- Finding
- with open(state_path, "w", encoding="utf-8") as f:
