security(zalouser): scope pairing-store auth to accountId#26672
Merged
steipete merged 3 commits intoopenclaw:mainfrom Mar 2, 2026
Merged
security(zalouser): scope pairing-store auth to accountId#26672steipete merged 3 commits intoopenclaw:mainfrom
steipete merged 3 commits intoopenclaw:mainfrom
Conversation
02b8596 to
b55007b
Compare
Contributor
|
Landed via temp rebase onto main.
Thanks @bmendonca3! |
obviyus
pushed a commit
that referenced
this pull request
Mar 2, 2026
Linux2010
pushed a commit
to Linux2010/openclaw
that referenced
this pull request
Mar 2, 2026
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
dawi369
pushed a commit
to dawi369/davis
that referenced
this pull request
Mar 3, 2026
OWALabuy
pushed a commit
to kcinzgg/openclaw
that referenced
this pull request
Mar 4, 2026
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
accountId.accountId.Change Type
Scope
extensions/zalouser/src/monitor.tsextensions/zalouser/src/monitor.account-scope.test.tsSecurity Impact
accountId.Repro + Verification
alpha,beta) withdmPolicy: pairingand emptyallowFrom.beta.betaby unscoped store access.beta; account-scoped pairing path is used.Local verification run:
pnpm exec vitest run extensions/zalouser/src/monitor.account-scope.test.ts extensions/zalouser/src/channel.test.ts extensions/zalouser/src/send.test.ts --maxWorkers=1Evidence
extensions/zalouser/src/monitor.tsextensions/zalouser/src/monitor.tsextensions/zalouser/src/monitor.account-scope.test.tsgh search prs --repo openclaw/openclaw --match title,body -- "zalouser scope pairing approvals"gh search prs --repo openclaw/openclaw --match title,body -- "zalouser pairing accountId"gh search issues --repo openclaw/openclaw --match title,body -- "zalouser pairing accountId"Human Verification
Compatibility / Migration
Failure Recovery
Risks and Mitigations
Greptile Summary
This PR fixes an auth boundary bypass in multi-account Zalouser deployments by scoping pairing-store reads and writes to the active
accountId.readAllowFromStoreto useaccount.accountId(extensions/zalouser/src/monitor.ts:229)upsertPairingRequestto includeaccountId: account.accountId(extensions/zalouser/src/monitor.ts:250)The fix follows the same pattern already used in WhatsApp (src/web/inbound/access-control.ts:66, :184) for multi-account scoping. Before this change, a sender approved in one account could bypass DM authorization checks in another account due to unscoped pairing-store lookups.
Confidence Score: 5/5
Last reviewed commit: 6607511