T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:34- Finding
Unscoped Access to Persistent Agent Memory and Project History
- Content
View full analysis
/project_memory.md /Users/shiyan/.trae-cn/memory/projects///topics.md ``` Extract: hard constraints, engineering conventions, lessons learned, topic summaries with timestamps. 2. **Session memory files** — Read `session_memory_*.jsonl` files for detailed task-level history: ``` /Users/shiyan/.trae-cn/memory/projects///session_memory_*.jsonl ``` Extract: specific tasks, TODOs, related files, decisions made. 3. **Workspace files** — List and inspect key files in the workspace: - Scripts, configs, data files (check modification times for chronology) - Existing documentation or analysis reports - Git log if a repository exists (`git log --oneline --stat`) ``` ### Technical Analysis The Skill directs the agent to collect information from persistent agent memory, detailed session transcripts, workspace files, and Git history. These sources can contain confidential conversations, credentials, internal file paths, proprietary project data, or information unrelated to the retrospective. The collection procedure lacks the following least-privilege controls: - Explicit user authorization before persistent memory or transcript access. - Validation that resolved memory paths belong to the active project. - Protection against cross-user access caused by the hard-coded `/Users/shiyan/` path. - An allowlist limiting which files and history entries may be inspected. - Exclusion and redaction rules for credentials, tokens, personal information, and unrelated project cont ...[truncated 2085 chars]- Remediation
View remediation
