T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:13- Finding
Unrestricted Cross-Session Conversation Log Access
- Content
View full analysis
/sessions/` (use the `agent=` value from the system prompt Runtime line). - **`sessions.json`** - Index mapping session keys to session IDs - **`.jsonl`** - Full conversation transcript per session ``` ```markdown ### Search across ALL sessions for a phrase ```bash rg -l "phrase" ~/.openclaw/agents//sessions/*.jsonl ``` ``` The document also supplies commands for enumerating every session and extracting user messages, assistant responses, tool calls, usage information, and other transcript content. ### Technical Analysis The skill instructs the agent to derive its agent identifier from the system prompt and directly inspect the complete session storage directory. It permits searches across every session rather than limiting access to a specifically identified parent conversation or an explicitly authorized session. Session transcripts may contain private user messages, assistant responses, tool output, operational metadata, credentials accidentally included in conversations, and information from unrelated channels or users. The skill does not define authorization checks, session-ownership validation, channel or tenant isolation, redaction, or data-minimization requirements before this content is accessed and returned. The commands are read-only and do not establish persistence, execute downloaded payloads, modify tools, or transmit data to a remote service. The risk instead arises from crossing logical access boundaries and exposing unrelated sensitive records. ### Attack Path 1. A user asks the agent about a prior conversation or supplies a phrase to search for. 2. The skill is activated because the request concerns historical context. 3. ...[truncated 1517 chars]- Remediation
View remediation
