Tainted flow: 'upload_url' from requests.post (line 23, network input) → requests.put (network output)
Medium
- Category
- Data Flow
- Content
if upload_url: # 上传文件内容 requests.put(upload_url, data=content, headers={"Content-Type": content_type}) return True- Confidence
- 96% confidence
- Finding
- The code takes an upload URL returned by a remote service and immediately performs a PUT to that URL without validating the destination host, scheme, or expected storage provider. If the upstream API is compromised, misconfigured, or intercepted, this can exfiltrate local file contents to an attacker-controlled endpoint, making this an SSRF-style exfiltration sink rather than a harmless upload helper.
