Tainted flow: 'bastion_path' from os.environ.get (line 158, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
if bastion_path.exists(): # bastion uses subparser: --workspace before scan try: result = subprocess.run( [sys.executable, str(bastion_path), "--workspace", str(workspace), "scan", "--json"], capture_output=True, text=True,- Confidence
- 75% confidence
- Finding
- result = subprocess.run( [sys.executable, str(bastion_path), "--workspace", str(workspace), "scan", "--json"], capture_output=True,
