Tainted flow: 'path' from os.getenv (line 61, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
if self._file: self._file.close() path = OPENCLAW_LOG_DIR / f"openclaw-{now_date}.log" self._file = open(path, "a", encoding="utf-8") self._current_date = now_date def emit(self, record: logging.LogRecord):- Confidence
- 88% confidence
- Finding
- self._file = open(path, "a", encoding="utf-8")
