T05 · Unauthorized Access and Privilege Escalation
- Location
src/protocol/memory.py:4- Finding
Path Traversal in Agent Memory Storage
- Content
View full analysis
- Remediation
View remediation
Path: if not SAFE_AGENT_ID.fullmatch(agent_id): raise ValueError("Invalid agent ID") target = (MEMORY_PATH / f"{agent_id}.json").resolve() target.relative_to(MEMORY_PATH) return target ``` ]]>
