Tainted flow: 'FAILED_QUEUE_FILE' from os.environ.get (line 28, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
@classmethod def append(cls, event: dict) -> None: with cls._lock: with open(FAILED_QUEUE_FILE, "a", encoding="utf-8") as f: f.write(json.dumps(event, ensure_ascii=False) + "\n") @classmethod- Confidence
- 86% confidence
- Finding
- The telemetry directory is derived from OPENCLAW_WORKSPACE, so an attacker who can influence the environment can redirect failed-event writes to an unintended filesystem location via symlinks or arbitrary paths. In an agent/runtime context, writing attacker-influenced telemetry data to attacker-chosen files can enable clobbering, persistence, or leakage into sensitive locations, especially if the process runs with elevated privileges.
