<!-- XE-13364 · Multisig lease-lifecycle operations require only any single signer, not the keyset threshold · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13364>. The page is the record; this is the same page for reading.*

XE-13364 · Bounty

# Multisig lease-lifecycle operations require only any single signer, not the keyset threshold

Closed · duplicate
—claimed Minor
[xe#506](https://github.com/xeprotocol/xe/issues/506)
filed 2026-11-12 15:15 UTC
by dillahhhh

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   Leasing / ledger

Duplicate of
:   [XE-0001](https://bounty.xe.network/XE-0001) accepted

Tracked
:   internally

Updated
:   2026-11-20 00:25 UTC

Told
:   2026-11-20 00:25 UTC

### Patches

- [xe#513](https://github.com/xeprotocol/xe/pull/513) open by arturbarszcz78
  fix(core): require multisig threshold for lease lifecycle operations (fixes #506)

### History

- [549891](https://bounty.xe.network/log/549891) 2026-11-20 00:25 UTC reply.mirrored
- [549881](https://bounty.xe.network/log/549881) 2026-11-20 00:25 UTC github.state\_pushed
- [549880](https://bounty.xe.network/log/549880) 2026-11-20 00:25 UTC github.labels
- [549540](https://bounty.xe.network/log/549540) 2026-11-20 00:24 UTC proposal.adopted
- [549539](https://bounty.xe.network/log/549539) 2026-11-20 00:24 UTC reply.sent
- [549538](https://bounty.xe.network/log/549538) 2026-11-20 00:24 UTC ticket.status new → closed
- [548853](https://bounty.xe.network/log/548853) 2026-11-20 00:24 UTC proposal.adopted
- [548852](https://bounty.xe.network/log/548852) 2026-11-20 00:24 UTC ticket.facts area
- [548851](https://bounty.xe.network/log/548851) 2026-11-20 00:24 UTC proposal.adopted
- [548850](https://bounty.xe.network/log/548850) 2026-11-20 00:24 UTC ticket.facts
- [548849](https://bounty.xe.network/log/548849) 2026-11-20 00:24 UTC proposal.adopted
- [548848](https://bounty.xe.network/log/548848) 2026-11-20 00:24 UTC ticket.facts

[Full history](https://bounty.xe.network/log?ref=XE-13364) · [JSON](https://bounty.xe.network/v1/tickets/XE-13364) · [markdown](https://bounty.xe.network/XE-13364.md)

### Report

## Summary

Lease-lifecycle operations on a multisig account — `lease_accept`, `lease_settle`, `lease_cancel`, and `lease_force_settle` — only require **any single** keyset member's signature, not the keyset threshold. A single member of a 2-of-3 multisig provider can unilaterally accept a lease (committing the provider), and a single member of a multisig consumer can unilaterally cancel or force-settle a lease. This is an authorization asymmetry: creating a lease (`lease`) and renewing one (`lease_renew`) correctly require threshold, but the lifecycle operations that commit, settle, or unwind a lease do not.

**Severity: Low.** This is **not** fund theft. The lease escrow, stake refund, and any XE emission always land in the shared multisig account, never in the individual member's account. The realistic harm is unilateral commitment / griefing — e.g. one member accepts a lease the other members did not approve, or cancels a lease the provider already provisioned for.

## Code references

- `core/multisig.go:140-149` — `IsSpendingOp` returns `true` only for `send, burn, lease, lease_renew, multisig_open, multisig_update, mint`. `lease_accept`, `lease_settle`, `lease_cancel`, and `lease_force_settle` are **not** in the list.
- `core/ledger.go:1416-1447` — `verifyBlockCredential`: for a multisig account, spending ops use `VerifyMultisig` (threshold signatures); all other block types use `VerifyMultisigAny`, which succeeds if **any one** keyset member's signature is valid (`core/multisig.go:112-126`).
- `core/ledger.go:1607` (`validateAndAddLeaseAccept`), `2117` (`lease_settle`), `1792` (`lease_cancel`), `1879` (`lease_force_settle`) — these validators check lease state, certificates, attestations, and balances, but none re-checks the multisig threshold, because the credential check already passed under the any-signer rule.

## Proof of concept (local, in-memory ledger only)

Verified locally against the real `AddBlock` path. No node was run, no public testnet was touched, no transaction was sent on any live network.

**Setup:** local in-memory ledger (`store.NewMemStore` \+ `core.NewLedger`), Go 1.25.0. Provider is a 2-of-3 multisig (keys k1, k2, k3), opened via a real `multisig_open` block signed by k1\+k2. Consumer is a single-key account funded with test XUSD. Lease params: 1 vCPU / 1024 MB / 10 GB / 3600 s, cost 40,000 micro-XUSD, stake 0\.

**Results (three arms, same lease params):**

| Arm | `lease_accept` signatures | Outcome |
| --- | --- | --- |
| Control | k1 \+ k2 (2-of-3, threshold) | **ACCEPTED** — lease state `accepted`. Proves the setup is valid. |
| Test | **k1 only (1-of-3)** | **ACCEPTED** — lease state `accepted`. Finding confirmed. |
| Negative control | outsider key (not in keyset) | **REJECTED** — `multisig: no valid signature from any keyset member`. Proves signature verification is enforced; the 1-of-3 acceptance is the any-signer rule, not a verification bypass. |

**Note:** only `lease_accept` was tested end-to-end. `lease_settle`, `lease_cancel`, and `lease_force_settle` share the same any-signer branch in `verifyBlockCredential`, so the same weakness applies to them by code inspection, but they were not individually exercised.

## Suggested fix

Include the lease-lifecycle operations in `IsSpendingOp` (or otherwise require threshold for them), so `lease_accept`, `lease_settle`, `lease_cancel`, and `lease_force_settle` on a multisig account require the keyset threshold — matching `lease` and `lease_renew`. If the any-signer behaviour is intentional (e.g. these are considered non-spending), document it, since it contradicts what a multisig user would expect.

## XE address for payment

69fe2d58161ce03e56fd596b1559b49836c5e0563a92cf3ecf823fb1c7628273

### Thread

**Alfonova-Node**2026-11-19 14:26 UTCgithub

# \[Re-verification\] Multisig lease-lifecycle threshold bypass — full end-to-end force\_settle PoC at HEAD 8cc209d

**Status of this comment:** verification evidence for an already-reported finding, NOT a new
submission and NOT a payout claim. Dedup baseline below; the first verifiable reports
(XE-0001 / xe#6, XE-0068 / xe#93) own this finding.

## Summary

Re-verified at `master` HEAD `8cc209d` ("release: testnet-0006 build"): the four lease-lifecycle
operations (`lease_accept`, `lease_cancel`, `lease_force_settle`, `lease_settle`) on a threshold
multisig account still require only **any single** keyset signature, because `IsSpendingOp`
(`core/multisig.go`) excludes them and `verifyBlockCredential` routes non-spending ops to
`VerifyMultisigAny`. PR #7 (which adds all four ops to `IsSpendingOp`) remains open/unmerged.

Prior reports cover the mechanism; #506 exercised only `lease_accept` end-to-end and noted the
other three legs were code-inspection only. This comment closes that gap for `lease_force_settle`
with a full ledger-level PoC (real `NewLedger` \+ `MemStore`, real block lifecycle, no source
modifications, no testnet transactions).

## End-to-end PoC (force\_settle leg)

Harness: separate package `poc/e2e` importing `core` \+ `store`; Go 1.25.0; virtual clock
(`core.Now` override) advanced past `expiry + LeaseSettleGrace + LeaseForceSettleGap`.

Chain executed:

1. Mint funder (1,000,000 XE) and provider (100 XE) accounts (open blocks declare `PubKey`).
2. Funder sends XCU to a **3-of-5 multisig** account opened via real `multisig_open` (3 signatures).
3. Multisig account creates a lease (`lease`, threshold-signed) → provider `lease_accept`.
4. Clock advances past expiry \+ grace \+ gap; timekeeper attestation signed for the attack time.
5. **Rogue single key holder** submits `lease_force_settle` with ONE signature.

Result: block admitted, lease → `LeaseUnfulfilled`, **40,000 XCU escrow returned to the multisig
funder chain without co-signer consent**.

Control assertion (same harness, same keyset): a 1-of-5 `send` is correctly rejected with
`multisig: insufficient signatures: got 1, need 3` — proving the gap is op-specific routing,
not a broken harness or a general signature-verification failure.

Raw output (`go clean -testcache && go test ./poc/e2e/ -run TestPoCForceSettleMultisigEndToEnd -v -count=1`):

```
=== RUN   TestPoCForceSettleMultisigEndToEnd
2026/11/19 22:25:35 Genesis block applied: 42000000000000 XE to 378d0f5c2063...
    force_settle_e2e_test.go:227: control: 1-of-5 send correctly rejected: multisig: insufficient signatures: got 1, need 3
    force_settle_e2e_test.go:230: ATTACK SUCCESSFUL: rogue key holder recovered 40000 XCU escrow from 3-of-5 multisig with a single signature
    force_settle_e2e_test.go:231: multisig=3299a09aede551a1 lease=bad14b3a3648be10 force_settle=7e62bb9e2cc96f75
--- PASS: TestPoCForceSettleMultisigEndToEnd (0.01s)
PASS
ok  	github.com/xeprotocol/xe/poc/e2e	0.011s
```

Unit-level companion (`go test ./core/ -run TestForceSettleBypassesThreshold -v`):

```
VerifyMultisig correctly rejects: insufficient signatures: got 1, need 3
VerifyMultisigAny accepts single sig — BYPASS CONFIRMED
IsSpendingOp(BlockLeaseForceSettle) = false → routes to VerifyMultisigAny
--- PASS: TestForceSettleBypassesThreshold (0.00s)
```

## Impact classification (honest)

Governance/authorization bypass, not theft: escrow returns to the shared multisig account's
chain, never to the rogue signer's personal account. Harm is unilateral settlement control —
one minority key holder can force-settle/cancel/settle leases the other members did not approve
(e.g. killing a provider's active service commitment, or unwinding a lease at a moment chosen
by the attacker). Consistent with the Low/Medium calibration in #506 and XE-0068.

## Dedup baseline

- XE-0001 / xe#6 (2026-10-18, Accepted) — first report; explicitly lists cancel/force-settle/settle missing from `IsSpendingOp`.
- XE-0068 / xe#93 (2026-10-26, Accepted Medium) — accept leg.
- XE-0093 / xe#157 (2026-10-29) — closed as duplicate of XE-0068 by the desk.
- xe#506 (2026-11-12) — accept leg e2e; this comment supplies the missing force\_settle e2e leg.
- Fix: PR #7 (open, unmerged at time of writing); also #784, #513, #110, #209.

No new bounty claim is made by this comment.

**Joseph Denne**team2026-11-20 00:25 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0001, 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, file a new report that links https://bounty.xe.network/XE-13364 and says what differs; it is read like any other.
