Tainted flow: 'out_path' from os.getenv (line 1226, credential/environment) → shutil.copyfile (file write)
Medium
- Category
- Data Flow
- Content
def output_from_cache(cache_file: Path, out_path: Optional[Path]) -> Path: if out_path: out_path.parent.mkdir(parents=True, exist_ok=True) shutil.copyfile(cache_file, out_path) return out_path return cache_file- Confidence
- 94% confidence
- Finding
- shutil.copyfile(cache_file, out_path)
