Unvalidated Output Injection
High
- Category
- Output Handling
- Content
exit_code, tail = 1, "" for attempt in range(1, attempts + 1): try: proc = subprocess.run( args.command, capture_output=True, text=True,- Confidence
- 85% confidence
- Finding
- The tool captures stdout/stderr from the wrapped command and re-emits it directly to the terminal, while also storing output tails in the state file and printing them later. If the wrapped command emits terminal control sequences or maliciously crafted text, this can cause terminal escape injection/log poisoning, misleading operators, hiding output, or triggering unsafe behavior in some terminals and downstream log viewers.
