Multisig threshold bypass on non-spending operations
Report
Multisig threshold bypass on non-spending operations
Summary
One member of a threshold multisig account can unilaterally execute every
non-spending operation — lease_accept, lease_cancel, lease_force_settle,
lease_settle — because the credential check routes non-spending block types
to VerifyMultisigAny (first valid signature wins) instead of the threshold
check. Only fund-out operations (send, burn, lease, renew, multisig open /
update, mint) enforce the threshold.
Impact
A single rogue member of a threshold multisig provider account can bind the
shared account to serve a lease (accept), cancel it, force-settle it, or
settle it, against the will of the other members. For lease_accept, this
locks the shared account's XUSD stake into escrow and commits it to a service
obligation. This is encumbrance plus settlement control, not direct theft:
fund-out operations still require the full threshold.
Suggested program tier: High (privilege escalation).
Root cause
core/ledger.goverifyBlockCredential: when a block carries signatures, spending operations go toVerifyMultisig(threshold enforced); everything else goes toVerifyMultisigAny.core/multisig.goIsSpendingOp: only send, burn, lease, renew, multisig_open, multisig_update, and mint return true.lease_accept,lease_cancel,lease_force_settle, andlease_settleare not spending operations.core/multisig.goVerifyMultisigAny: returns success on the first signature that verifies against any keyset member. The threshold is ignored.
Proof of concept
Target: xeprotocol/xe @ 978785929bc17a2f4ab30c383e5fc9cf4d634512
(2026-10-15). The harness runs against the real core and store packages
via a replace directive; the repository itself is not modified.
Attached PoCs: pocs/harness-slice1-main.go.txt (byte-identical copy of the
runnable harness; the accept case is the C1 section) and
pocs/harness-f01-legs-main.go.txt (byte-identical copy of the harness for
the remaining three legs).
Run (Go 1.25.14):
export PATH="$HOME/.local/go/bin:$PATH"
cd harness-slice1
GOPROXY=off go run .
cd ../harness-f01-legs
GOPROXY=off go run .
Observed output (verbatim, accept leg):
1-of-3 accept (threshold 2) AddBlock err=<nil>
lease state after 1-sig accept: accepted (expected accepted if bypass)
1-of-3 send (threshold 2) AddBlock err=multisig: insufficient signatures: got 1, need 2 (expect threshold error)
Observed output (verbatim, remaining legs):
cancel outsider-sig AddBlock err=multisig: no valid signature from any keyset member (expect failure)
cancel 1-sig (threshold 2) AddBlock err=<nil>
lease state after 1-sig cancel: cancelled
force-settle 1-sig (threshold 2) AddSyncedBlock err=<nil>
lease state after 1-sig force-settle: unfulfilled
pending after force-settle: <nil> (nil = deleted)
accept 1-sig (threshold 2) AddBlock err=<nil>
settle 1-sig (threshold 2) AddSyncedBlock err=<nil>
lease state after 1-sig settle: settled
provider XE before=0 after=80000 (expected +80000)
So a threshold-2 multisig account accepted, cancelled, force-settled, and settled leases on one member's signature alone, while the same single signature on a send was correctly rejected — and an outsider's signature on the cancel was correctly rejected, proving the single-member success is signature-based, not an absent check.
Reproduction steps
- Open a threshold-2 multisig account (members k1, k2).
- Craft a
lease_acceptblock for a lease offered to that account, signed by k1 only. - Submit via
AddBlock/ API / gossip. Observed: accepted.
Recommended fix
Route all multisig-account operations through VerifyMultisig (threshold),
or document explicitly which operations are intentionally single-signature
and why.
Severity
- CVSS 3.1: 6.5 —
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N - CWE-862 (Missing Authorization)
Caveats
- All four legs (accept, cancel, force-settle, settle) have now been
executed end to end with one member's signature on a threshold-2 account.
The force-settle and settle legs used
AddSyncedBlock(skipSkew) solely to satisfy their attestation time windows inside a test; the credential check under test runs first on both the normal and sync paths, identically. - No public prior report of this threshold-routing mechanism was found (dedup queries recorded in the audit's DEDUP-BASELINE.md).
- This reproduction runs against the repository code at the stated HEAD. No testnet transactions were sent as part of this report.
Payout address (XE): eff2c51dd8457df740b919226cd9b37a2944e5abea7501094db80234f87f010e
Best, Chaplin
Thread
Thanks. This is the same finding as https://bounty.xe.network/XE-0068, which was filed first; the programme pays the first verifiable submission, so this one closes as a duplicate. If you believe it is a different bug, reply with what differs and we will look again.