T05 · Unauthorized Access and Privilege Escalation
- Location
references/queue-format.md:24- Finding
Autonomous Research Template Permits Unnecessary Access to Sensitive Agent Configuration
- Content
View full analysis
Vulnerability Details
File Location:
references/queue-format.md, lines 24–28
Vulnerability Type:T05: Unauthorized Access and Privilege Escalation
Risk Level: MediumVulnerable Code
md - allowedTools: read, exec, web_search, web_fetch - successCriteria: identify the cause or confirm it is an upstream bug/regression - memoryNote: - links: - ~/.openclaw/openclaw.jsonTechnical Analysis
The canonical starter question authorizes local
readandexeccapabilities while directing the research agent to~/.openclaw/openclaw.json. This hidden home-directory configuration file may contain sensitive provider, runtime, model, tool, or integration settings.Access to this configuration is not necessary for the Skill's general queue-management functionality. The Skill also does not require explicit user approval before accessing hidden configuration files, restrict reads to specific non-sensitive fields, or require redaction before findings are written to
QUESTIONS.mdor durable memory.The combination is especially relevant because the Skill supports autonomous OpenClaw cron runs. A scheduled agent turn could select the example question and inspect the configuration without contemporaneous user review. No instruction to exfiltrate the file or execute data obtained from it was found, so the confirmed risk is unnecessary sensitive-resource access rather than confirmed data theft or arbitrary code execution.
Attack Path
- The Skill initializes a missing
QUESTIONS.mdusing the canonical template. - The included Q0001 example remains an active, high-priority question.
- A manual or user-requested scheduled research pass selects that question.
- The agent follows the
linksfield and accesses~/.openclaw/openclaw.jsonthrough the authorizedreadorexectool. - Sensitive configuration-derived information may be summarized in the queue's
evidenceorconclusionfields.
...[truncated 858 chars]
- The Skill initializes a missing
- Remediation
View remediation
Remediation Suggestions
- Remove
~/.openclaw/openclaw.jsonfrom the canonical starter example and replace it with a synthetic fixture or clearly non-sensitive documentation path. - Do not add starter examples as active research tasks unless the user explicitly requests them. Prefer an empty queue for first-use initialization.
- Require explicit user approval before reading hidden files, home-directory configuration, credential stores, environment files, or other potentially sensitive resources.
- Replace broad
execaccess withreadwhen code execution is not essential to the selected question. - If configuration inspection is explicitly authorized, restrict access to named, non-secret fields and prohibit copying raw configuration content into queue evidence, conclusions, logs, or memory files.
- Add mandatory secret-redaction rules covering API keys, tokens, credentials, provider secrets, personal identifiers, and integration endpoints.
- For autonomous cron runs, reject questions requiring sensitive local-resource access unless prior approval and an explicit allowlist are recorded in the question.
- Keep scheduled research isolated and bounded, and provide users with a clear way to inspect, disable, or delete each OpenClaw cron job.
- Remove
