{"id":"XE-13382","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"539","source_url":"https://github.com/xeprotocol/xe/issues/539","reporter_id":2,"title":"[DAO] chainops.account_snapshot allows multi-hop post-snapshot relay taint laundering and premature lease_settle voting weight multiplication","area":"dao-harness","claimed_tier":null,"assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:14.239131+00:00","updated_at":"2026-11-15T10:28:23.796928+00:00","source_created_at":"2026-11-13T06:15:46+00:00","told_at":"2026-11-15T10:27:38+00:00","status_changed_at":"2026-11-15T10:27:33.404606+00:00","url":"https://bounty.xe.network/XE-13382","body":"### Summary\n\n`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`).\n\nThis creates two governance voting-weight amplification and snapshot-bypass defects:\n\n1. **Multi-hop relay taint laundering across the `±1h` block-timestamp tolerance**:\n   - 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`.\n   - 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.\n2. **Premature / post-snapshot `lease_settle` and `lease_renew` bypass**:\n   - `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`.\n   - 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.\n\n### Impact\n\nA 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.\n","patch_refs":[],"thread":[{"id":3146,"source":"github","source_ref":"6845732326","author":"Khanhtnq","team":false,"body":"Proposed fix opened in https://github.com/xeprotocol/dao/pull/6.","created_at":"2026-11-13T06:15:49+00:00"},{"id":5373,"source":"github","source_ref":"6892976237","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13382 and says what differs; it is read like any other.","created_at":"2026-11-15T10:27:38+00:00"}]}