T09 · Insecure Skill Coding Practices
- Location
src/upload-server.js:26- Finding
Fail-Open Authentication Exposes All Management APIs
- Content
View full analysis
{ ``` ### Technical Analysis Authentication is enforced only when `GATEWAY_TOKEN` is non-empty. If the configuration file is missing, unreadable, malformed, or contains only password authentication, `loadGatewayToken()` returns an empty string. The condition then evaluates to false for every request, disabling authentication. The installer calculates `GATEWAY_AUTH_VALUE`, including password-based authentication, but the server never reads that environment variable. Consequently, the documented password compatibility is not implemented. This is a fail-open design. Configuration or parsing failures must not silently convert an authenticated network service into an anonymous service, particularly when the process listens on `0.0.0.0`. ### Attack Path 1. The service starts on a system with a missing, unreadable, malformed, or password-only OpenClaw configura ...[truncated 894 chars]- Remediation
View remediation
