Tainted flow: 'tmp' from os.environ.get (line 179, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# Use openclaw cron add via stdin json (if supported) else via temp file. # We'll write a temp file. tmp = os.path.join(ws, "tmp-cron-job.json") with open(tmp, "w", encoding="utf-8") as f: json.dump(job, f) rc, out = run(["openclaw", "cron", "add", "--file", tmp], cwd=ws) try:- Confidence
- 82% confidence
- Finding
- with open(tmp, "w", encoding="utf-8") as f:
