Description-Behavior Mismatch
- Category
- Not specified by scanner
- Confidence
- 98% confidence
- Finding
The script's input logic is unsafe for a text-shuffling tool: when no filename argument is given, it reads all of stdin and then passes that content to open() as though it were a filesystem path. This means untrusted piped input can cause the tool to open arbitrary local files instead of shuffling the provided text, leading to unintended file disclosure or confusing behavior that violates the advertised function.
- Content
