The vulnerability exists in the openclaw matrix extension, where matrix profile updates could be performed by non-owner users due to a missing authorization check. The root cause is in the matrixMessageActions.handleAction function within extensions/matrix/src/actions.ts, which processed the set-profile action without verifying if the sender had the necessary owner privileges. This allowed any user with access to the operator.write message tool to modify the Matrix profile configuration, an action that should be restricted to administrators.
The patch addresses this by introducing a crucial check for ctx.senderIsOwner within the handleAction function. If a non-owner attempts to use set-profile, the system now throws a ToolAuthorizationError. As a defense-in-depth measure, the matrixMessageActions.describeMessageTool function was also updated to hide the set-profile action from non-owner users entirely, preventing them from discovering it. The fix required propagating the senderIsOwner status from the initial gateway request down to the action handlers, which is why numerous files were modified, but the core vulnerability is remediated in extensions/matrix/src/actions.ts.