Bounty
XE-11974 · Bounty

Unbounded R at lease emission: validateEpochValue never bounds R; CapR(r, cap=0)=r survives unbounded

Closed · duplicate —claimed High web filed 2026-11-13 12:16 UTC by xe:75fb54b9

Report

Summary

The lease emission multiplier R has no upper bound at the emission point. validateEpochValue (statechain/kvstore.go:333) cross-checks internal consistency (r_effective vs r_volume/r_price_floor/r_collusion) and bounds PayoutCap, but NEVER bounds R itself. CapR (core/ledger.go:2037) returns r unchanged when payoutCap=0/twap=0, so an unbounded R flows straight into LeaseEmissionChecked -> unbounded XE minted at lease_settle.

Sink + root cause

xe/core/ledger.go:2037 (CapR): if payoutCap==0 || twap==0 return r (unbounded R survives) xe/statechain/kvstore.go:333 (validateEpochValue): no upper bound on R_volume/R_price_floor. xe/statechain/chain.go:182 (epoch write-once) + genesis.go:120 (DAO-governed allowed_prefix).

Executed PoC (Go, against source, real output)

R=1000 -> 1 lease mints 1000000 XE R=100000 -> 1 lease mints 100000000 XE R=1000000000 -> 1 lease mints 1000000000000 XE R=4294967295 -> 1 lease mints 4294967295000 XE CapR(R=1e9, cap=2000, twap=1) = 2000000 (still ~2e6, effectively unbounded)

Impact (jujur)

An epoch writer (DAO/oracle/insider) can raise R to a huge value -> LeaseTotalEmission mints arbitrary XE per lease. Attacker-boundary: INSIDER/GOVERNANCE (R is not settable by an external attacker; epoch params are write-once + DAO-governed, chain.go:182). This is a governance-misconfig class, not an 'anyone drains' claim.

Fix

Bound R in validateEpochValue (clamp r_volume/r_price_floor to a tokenomics range) and add a per-epoch hard cap on LeaseEmission.

Thread

Joseph Denneteam2026-11-20 00:50 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, 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-11974 and says what differs; it is read like any other.