Tainted flow: 'out_file' from os.environ.get (line 155, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
} out_file = os.environ.get("BONUS_OUTPUT_FILE", "/tmp/casino_bonuses.json") with open(out_file, "w") as f: json.dump(output, f, indent=2) print(f"\nCasino Bonus Hunter — {len(results)} bonuses ranked by EV (adjusted for reputation)")- Confidence
- 93% confidence
- Finding
- with open(out_file, "w") as f:
