Unvalidated Output Injection
- Category
- Output Handling
- Confidence
- 85% 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
md |---|-------|-----| | 1 | After tdd invocation, jump to "current behavior diagnosis → medium decision ask" (skipping Red authoring) | First action after tdd invocation = TaskCreate (`Red`, `Green`, `Refactor`, `Verify`) + Red test authoring + execution | | 2 | "Root cause found = decide solution medium" thinking (Red step deprioritized) | Even after root cause is found, author + execute Red first to secure regression-prevention evidence. Medium decision is part of Green step | | 3 | After diagnosis report, immediately AskUserQuestion "how to solve?" | Author Red + execute (confirm failure + report output) → then ask about Green medium | | 4 | "Regression test is authored after implementation" thinking (Test-After) | TDD = Test-First. Red is mandatory before any implementation/deployment | | 5 | Skipping Red authoring and going straight to Green under the pretext of "environment constraint blocks Red execution" | Author Red (test file in committable state) → state execution-blocked reason → plan CI/manual verification medium → Green |
