Tainted flow: 'target' from os.getenv (line 115, credential/environment) → shutil.copy2 (file write)
Medium
- Category
- Data Flow
- Content
extracted = td_path / member.name if not extracted.exists(): raise RuntimeError("extracted aliyun binary missing") shutil.copy2(extracted, target) mode = target.stat().st_mode target.chmod(mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)- Confidence
- 94% confidence
- Finding
- shutil.copy2(extracted, target)
