Tainted flow: 'src' from os.environ.get (line 305, credential/environment) → shutil.copy2 (file write)
Medium
- Category
- Data Flow
- Content
src = os.path.join(draft_dir, item) dst = os.path.join(dest_dir, item) if os.path.isfile(src): shutil.copy2(src, dst) elif os.path.isdir(src): if os.path.exists(dst): shutil.rmtree(dst)- Confidence
- 91% confidence
- Finding
- shutil.copy2(src, dst)
