Tainted flow: 'OUT' from os.environ.get (line 19, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
report[w] = 1 if report: print("WARN unresolved:", list(report)) json.dump(final_map, open(f"{OUT}/_final.json", "w"), ensure_ascii=False, indent=1) def md5(p): return hashlib.md5(open(p, "rb").read()).hexdigest() seen, dups = {}, []- Confidence
- 84% confidence
- Finding
- The output directory is taken from EMOJI_OUT without validation, and the script writes files into that location. If an attacker can control the environment in which the script runs, they may redirect writes to unintended filesystem locations, causing overwrite, data clobbering, or planting files in sensitive directories accessible to the current user.
