Unvalidated Output Injection
- Category
- Output Handling
- Confidence
- 95% confidence
- Finding
Model output is used without validation or sanitization. Unvalidated output injected into downstream contexts (SQL, shell, HTML) enables injection attacks and arbitrary code execution.
- Content
python shutil.copytree(ROOT / "scripts", relocated / "scripts", ignore=shutil.ignore_patterns("__pycache__")) shutil.copytree(ROOT / "examples", relocated / "examples") output = Path(temporary) / "outside-delivery" run = subprocess.run([sys.executable, str(relocated / "scripts/repair_bundle.py"), "export", "--input", str(relocated / "examples/success/input.json"), "--output-dir", str(output)], cwd=temporary, capture_output=True, text=True) self.assertEqual(run.returncode, 0, run.stderr)
