Direct flow: os.environ.get (credential/environment) → subprocess.run (code execution)
- Category
- Data Flow
- Confidence
- 80% confidence
- Finding
Data flows directly from a source (env vars, files, network) to a sink (network output, exec, file write) without intermediate validation.
- Content
python pdf_path = src.with_suffix(".pdf") src.write_bytes(docx_bytes) try: r = subprocess.run([sys.executable, "-c", _WORD_SCRIPT, str(src), str(pdf_path)], capture_output=True, text=True, timeout=int(os.environ.get("DOCBRIEF_WORD_TIMEOUT", "120"))) m = re.search(r"PAGES (\d+)", r.stdout or "") if not m:
