T05 · Unauthorized Access and Privilege Escalation
- Location
SKILL.md:9- Finding
Unrestricted Cross-Session Access to Sensitive Conversation Logs
- 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 ## Structure Each `.jsonl` file contains messages with: - `type`: "session" (metadata) or "message" - `timestamp`: ISO timestamp - `message.role`: "user", "assistant", or "toolResult" - `message.content[]`: Text, thinking, or tool calls (filter `type=="text"` for human-readable content) - `message.usage.cost.total`: Cost per response ``` ```markdown ### Search across ALL sessions for a phrase ```bash rg -l "phrase" ~/.clawdbot/agents//sessions/*.jsonl ``` ``` ```markdown ## Fast text-only hint (low noise) ```bash jq -r 'select(.type=="message") | .message.content[]? | select(.type=="text") | .text' ~/.clawdbot/agents//sessions/.jsonl | rg 'keyword' ``` ``` ### Technical Analysis The skill directs the agent to locate and inspect complete conversation transcripts stored under the agent-wide session directory. These records can include user and assistant messages, tool results, tool calls, internal thinking content, usage information, and sessions associated with different chat providers. The documented trigger only requires a user to ask about prior conversations. It does not require the requester to identify an authorized session, prove ownership of the requested transcript, or limit the search to sessions belonging to the same user or tenant. The command under “Search across ALL sessions” explicitly searche ...[truncated 2410 chars]- Remediation
View remediation
