Tainted flow: 'cmd' from os.environ.get (line 198, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
# (pst_extractor_helper.js bundled in this skill). The command list is # constructed from validated local paths only — no shell=True, no user # input is ever interpolated into the command string. result = subprocess.run(cmd, capture_output=True, text=True) for line in result.stderr.splitlines(): print(f" {line}", file=sys.stderr) if result.returncode != 0:- Confidence
- 88% confidence
- Finding
- result = subprocess.run(cmd, capture_output=True, text=True)
