Context-Inappropriate Capability
Medium
- Confidence
- 98% confidence
- Finding
- The script interpolates the user-controlled agent_id directly into filesystem paths for both reads and writes under /workspace/subagents/{agent_id}/..., with no validation or normalization. An attacker can supply path traversal sequences such as ../ to escape the intended directory and read or overwrite arbitrary files accessible to the process, which is especially risky because the code writes a JSON report to the derived path.
