Tainted flow: 'url' from requests.get (line 114, network input) → requests.get (network output)
Medium
- Category
- Data Flow
- Content
def _download_caption(url: str) -> Optional[str]: try: import requests r = requests.get(url, timeout=15) if r.status_code == 200 and r.text.strip(): return r.text except Exception:- Confidence
- 88% confidence
- Finding
- The code fetches a caption URL obtained from remote metadata without validating the destination host or scheme. That can enable server-side request forgery behavior or unintended outbound requests to attacker-controlled endpoints if upstream metadata is malicious or compromised.
