Tainted flow: 'json_filename' from os.getenv (line 189, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# 同时保存原始 JSON 结果 json_filename = output_dir / f"mx_search_{safe_filename(query)}.json" with open(json_filename, "w", encoding="utf-8") as f: json.dump(result, f, ensure_ascii=False, indent=2) print(f"📄 原始结果已保存到: {json_filename}")- Confidence
- 65% confidence
- Finding
- Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.
