Tainted flow: '_STATE_PATH' from os.environ.get (line 23, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
def _save_state(self) -> None: _STATE_PATH.parent.mkdir(parents=True, exist_ok=True) with open(_STATE_PATH, "w", encoding="utf-8") as fh: json.dump(self._state, fh, indent=2, default=str) # ------------------------------------------------------------------- Confidence
- 93% confidence
- Finding
- with open(_STATE_PATH, "w", encoding="utf-8") as fh:
