Tainted flow: 'multipart' from open (line 116, file read) → requests.post (network output)
High
- Category
- Data Flow
- Content
fh = open(file_path, "rb") multipart = [("file", (file_path.name, fh, _mime(file_path.name)))] resp = requests.post( endpoint, files=multipart, params=params,- Confidence
- 94% confidence
- Finding
- The script reads a user-supplied local file and uploads it to a third-party cloud OCR endpoint. This is an intentional feature, but it is still a real data-exfiltration risk because sensitive PDFs/images may be transmitted off-host without an explicit runtime warning, consent gate, or allowlist enforcement.
