Tainted flow: 'upload_url' from requests.post (line 96, network input) → requests.put (network output)
Medium
- Category
- Data Flow
- Content
content_type = mimetypes.guess_type(str(path))[0] or "application/octet-stream" with path.open("rb") as fh: put = requests.put( upload_url, data=fh, headers={"Content-Type": content_type},- Confidence
- 77% confidence
- Finding
- The script obtains an upload URL from a remote API response and then blindly uploads local file contents to that URL. If the upstream service is compromised, misconfigured, or redirected, sensitive local files selected by the user could be sent to an attacker-controlled destination, making this a trust-boundary violation and potential exfiltration path.
