Tainted flow: 'target' from os.getenv (line 377, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
# 写回目标文件 os.makedirs(os.path.dirname(os.path.abspath(target)), exist_ok=True) with open(target, 'w') as f: f.write(result.stdout) print(f"已将 {source} 合并到 {target}")- Confidence
- 84% confidence
- Finding
- with open(target, 'w') as f:
