Tainted flow: 'raw_text' from requests.get (line 103, network input) → pathlib.Path.write_text (file write)
Medium
- Category
- Data Flow
- Content
raw_text = json.dumps(data, indent=2) path = Path(config["raw_output_path"] or "/tmp/ncbi-gene-search.json") path.parent.mkdir(parents=True, exist_ok=True) path.write_text(raw_text, encoding="utf-8") raw_output_path = str(path) total = data[0] codes = data[1] if isinstance(data[1], list) else []- Confidence
- 88% confidence
- Finding
- path.write_text(raw_text, encoding="utf-8")
