T05 · Unauthorized Access and Privilege Escalation
- Location
scripts/stem/stem-check.sh:30- Finding
Undocumented Access to Agent Learning and Workflow State
- Content
View full analysis
/dev/null || echo 0 else echo 0 fi } ``` ```bash # 检查workflow状态 check_workflow_status() { local wf_dir="/root/.openclaw/workspace/.workflow" if [ -f "$wf_dir/state.json" ]; then grep -o '"phase":"[^"]*"' "$wf_dir/state.json" 2>/dev/null | cut -d'"' -f4 || echo "unknown" else echo "未初始化" fi } ``` ### Technical Analysis The script directly accesses learning and workflow-state files under the root user's OpenClaw workspace: - `/root/.openclaw/workspace/.learnings/LEARNINGS.md` - `/root/.openclaw/workspace/.workflow/state.json` These reads are not disclosed in `SKILL.md`, which presents the Skill as a self-renewal framework but does not identify the internal learning and workflow resources that will be inspected. The script only extracts the number of Markdown headings and the current workflow phase. It does not copy full learning records or transmit information externally. Consequently, the immediate exposure is limited to internal activity metadata. No mechanism for bypassing operating-system permissions was identified; access succeeds only when the executing account already has permission to read the files. ### Attack Path 1. A user or Agent invokes `stem-check.sh`, expecting a general capability-status check. 2. The script accesses internal learning and workflow files in the root OpenClaw workspace. 3. It derives the number of learning entries and the current workflow phase. 4. These values are displayed and subsequently stored in `.stem/state.json`. 5. A party ...[truncated 635 chars]- Remediation
View remediation
