Tp4
- Category
- MCP Tool Poisoning
- Confidence
- 98% confidence
- Finding
The declared purpose is a standard line-numbering utility for text content. The code matches that purpose only when a filename argument is supplied. In the no-argument case, instead of numbering lines from stdin, it executes open(sys.stdin.read()), which interprets stdin content as a filename/path and opens that file. This is a materially different behavior involving unintended filesystem access and means the implementation does not accurately represent the declared functionality.
- Content
