Intent-Code Divergence
Low
- Confidence
- 84% confidence
- Finding
- The comment states the default state-file path is trusted, but it is derived from OPENCLAW_WORKSPACE, which is fully attacker-controlled in many automation contexts. Because the default path skips the stricter validation applied to explicit --state-file, a malicious environment can redirect writes to unintended files under the current user's permissions.
