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 self.payload = json.loads((self.inputs / "input.json").read_text(encoding="utf-8")) def run_build(self, name="input.json", success=True, output=None): result = subprocess.run( [sys.executable, str(ROOT / "scripts" / "knowledge_base.py"), "build", "--input", str(self.inputs / name), "--output", str(output or self.output)], cwd=self.work, capture_output=True, encoding="utf-8",
