Summary
A missing authorization check in the OpenClaw WhatsApp integration exposes a login tool to admitted non-owner senders through a generic channel-tool path. An attacker who can steer that tool may request a new QR code, disconnecting the configured WhatsApp account and causing service disruption; full relinking additionally requires scanning the QR code.
Affected context
The issue occurs in deployments using the OpenClaw WhatsApp channel integration when the login capability is reachable through a generic channel-tool route. The route does not preserve or enforce the originating sender's owner status, allowing a non-owner sender who has already been admitted to the channel or tool workflow to reach an operation intended only for the owner.
Exploit preconditions
- Attack surface: The generic channel-tool path for the WhatsApp integration
- Required access: An admitted non-owner sender who can influence or invoke the exposed tool
- Trigger point: A forced WhatsApp login request for a configured account
- Why exploitation is possible: The generic tool route fails to carry forward the sender's owner authorization state, so the owner-only boundary is not enforced
- Additional condition for full relinking: The attacker must scan the returned QR code with another phone
Why this happens
The underlying flaw is an authorization-context propagation failure. A tool that requires owner-level access is exposed through a broader dispatch path, but the path does not retain or recheck the originating sender's owner status before performing the login operation. This maps to CWE-862: Missing Authorization, because the application performs a sensitive account-management action without enforcing the required permission at the point of use.
Potential impact
- A non-owner sender may cause the configured WhatsApp account to disconnect
- WhatsApp messaging availability may be disrupted
- A new QR code may be disclosed to the party controlling the tool interaction
- An attacker who also completes QR-code scanning could relink the account to another phone
- Dependent workflows and communications may experience interruption
General mitigation guidance
Mitigation generally focuses on enforcing authorization consistently across every tool-dispatch path.
Common defensive patterns include:
- Rechecking owner status at the sensitive operation boundary rather than trusting upstream routing
- Preserving authenticated sender identity and authorization context across generic channel-tool dispatch
- Applying explicit deny-by-default policies to login, relinking, and session-management operations
- Separating owner-only account controls from broadly available channel tools
- Limiting the privileges and reach of identities that can invoke integration tools
- Treating QR codes and other session-enrollment artifacts as highly sensitive and avoiding unnecessary disclosure
How teams detect issues like this
Organizations can look for missing-authorization risks through:
- Static analysis and policy rules that identify sensitive tool handlers lacking explicit permission checks
- Code review checks for generic dispatchers that invoke owner-only operations
- Tests that exercise each tool through every supported routing path with owner and non-owner identities
- Audit logging for forced-login, QR-generation, disconnect, and relinking events
- Runtime policies that alert when non-owner identities attempt account-management actions
- Automated security review tools that trace authorization context from message ingress to sensitive operations

