Tainted flow: 'filepath' from requests.post (line 196, network input) → open (file write)
Medium
- Category
- Data Flow
- Content
os.makedirs("output", exist_ok=True) filepath = f"output/output_{safe_style}_{timestamp}.jpg" with open(filepath, 'wb') as f: f.write(base64.b64decode(data['image_base64'])) style = data['hairstyle']- Confidence
- 77% confidence
- Finding
- with open(filepath, 'wb') as f:
