Tainted flow: 'img_url' from requests.get (line 49, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
headers = {"Referer": REFERER} try: resp = requests.get(img_url, headers=headers, timeout=10) resp.raise_for_status() with open(filepath, 'wb') as f:- Confidence
- 93% confidence
- Finding
- The image URL is derived from untrusted remote HTML and then fetched again without validating the scheme, host, or resolved IP. An attacker controlling the source page or a network intermediary could cause the tool to request arbitrary URLs, enabling SSRF-like behavior or downloads from unexpected internal or malicious endpoints.
