Bounty
XE-13382 · Bounty

[DAO] chainops.account_snapshot allows multi-hop post-snapshot relay taint laundering and premature lease_settle voting weight multiplication

Closed · duplicate — xe#539 filed 2026-11-13 06:15 UTC by Khanhtnq

Report

Summary

dao/chainops.py (account_snapshot, _sends_at_or_before) enforces only single-hop sender causality on incoming receive blocks (send["timestamp"] > at), and credits lease_settle blocks without verifying whether the underlying lease_offer / lease_accept and any lease_renew segments actually reached expiry at or before the snapshot timestamp at (or whether timekeeper attestations place effective settlement after at).

This creates two governance voting-weight amplification and snapshot-bypass defects:

  1. Multi-hop relay taint laundering across the ±1h block-timestamp tolerance:
    • Suppose voter W_0 holds 1,000 XE at snapshot T, votes with W_0, and after T sends 1,000 XE at timestamp T + 1 to intermediate relay R_1, which then forwards 1,000 XE to W_1 in a send block self-dated <= T (valid on-chain within the 1-hour ledger timestamp window), where W_1 receives it at <= T.
    • When account_snapshot(client, W_1, at=T) inspects W_1's receive from R_1, R_1's send block has timestamp <= T, so single-hop inspection stops at R_1 without checking that R_1's balance was funded after T by W_0! Repeating W_k -> R_{k+1} -> W_{k+1} multiplies the same 1,000 XE across N eligible voting wallets (N * 1,000 XE aggregate voting weight) after the snapshot has already closed.
  2. Premature / post-snapshot lease_settle and lease_renew bypass:
    • account_snapshot treats lease_settle blocks with timestamp <= at as clean balance restoration without verifying on the lease chain (lease_offer, lease_accept, lease_renew) that every lease and renewal duration had actually expired by at, and without excluding settlements whose timekeeper attestations place effective settlement after at.
    • In addition, xe/client.py (account_block) does not validate duration, start_time, or timekeeper attestation timestamps as integers at intake, and cached voter snapshots under SNAPSHOT_RULE = 4 retain tainted weights unless the rule version is bumped.

Impact

A single holder of X XE can multiply governance voting power across arbitrary fresh wallets after a proposal's snapshot timestamp T via 2-hop (W_i -> R_{i+1} -> W_{i+1}) transfers inside the ledger timestamp tolerance, or count unexpired/post-snapshot lease settlements toward snapshot voting weight.

Thread

Khanhtnq2026-11-13 06:15 UTCgithub

Proposed fix opened in https://github.com/xeprotocol/dao/pull/6.

Joseph Denneteam2026-11-15 10:27 UTCgithub

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-13382 and says what differs; it is read like any other.