Tainted flow: 'output_path' from input (line 355, user input) → open (file write)
Medium
- Category
- Data Flow
- Content
req = urllib.request.Request(url) with urllib.request.urlopen(req, timeout=60) as response: img_data = response.read() with open(output_path, 'wb') as f: f.write(img_data) return img_data except Exception as e:- Confidence
- 86% confidence
- Finding
- The script writes downloaded content to a user-controlled output_path without restricting the destination. If this skill is run with elevated privileges or in an automation context, a caller could overwrite arbitrary files accessible to the process, causing data loss or persistence opportunities.
