Tainted flow: 'save_path' from os.getenv (line 240, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# 写入文件 downloaded_bytes = 0 with open(save_path, "wb") as f: for chunk in response.iter_content(chunk_size=8192): if chunk: f.write(chunk)- Confidence
- 92% confidence
- Finding
- The file write target is derived from a path influenced by environment configuration and user-controlled filename components, but the code does not enforce that the final path remains within the intended download directory. If an attacker can control MEETINGOS_DOWNLOAD_DIR or influence file naming in a hostile deployment, they could cause arbitrary file overwrite in writable locations.
