<!-- XE-11654 · [Core] Validasi live maupun staged tidak pernah membandingkan timestamp blok dengan pendahulu kausalnya — receive bisa bertanggal sebelum send-nya · testnet -->
*Markdown view of <https://bounty.xe.network/XE-11654>. The page is the record; this is the same page for reading.*

XE-11654 · Bounty

# \[Core\] Validasi live maupun staged tidak pernah membandingkan timestamp blok dengan pendahulu kausalnya — receive bisa bertanggal sebelum send-nya

Closed · duplicate
—claimed Medium
web
filed 2026-11-13 07:02 UTC
by cunels

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Medium

Area
:   Leasing / ledger

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 12:59 UTC

Told
:   2026-11-20 12:59 UTC

### Patches

None linked.

### History

- [597669](https://bounty.xe.network/log/597669) 2026-11-20 12:59 UTC proposal.adopted
- [597668](https://bounty.xe.network/log/597668) 2026-11-20 12:59 UTC reply.sent
- [597667](https://bounty.xe.network/log/597667) 2026-11-20 12:59 UTC ticket.status new → closed
- [594406](https://bounty.xe.network/log/594406) 2026-11-20 12:58 UTC proposal.adopted
- [594405](https://bounty.xe.network/log/594405) 2026-11-20 12:58 UTC ticket.facts area
- [594404](https://bounty.xe.network/log/594404) 2026-11-20 12:58 UTC proposal.adopted
- [594403](https://bounty.xe.network/log/594403) 2026-11-20 12:58 UTC ticket.facts
- [594402](https://bounty.xe.network/log/594402) 2026-11-20 12:58 UTC proposal.adopted
- [594401](https://bounty.xe.network/log/594401) 2026-11-20 12:58 UTC ticket.facts
- [587268](https://bounty.xe.network/log/587268) 2026-11-20 09:37 UTC note.added
- [587267](https://bounty.xe.network/log/587267) 2026-11-20 09:37 UTC proposal.created
- [587266](https://bounty.xe.network/log/587266) 2026-11-20 09:37 UTC proposal.created

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

### Report

Judul: \[Core\] Validasi live maupun staged tidak pernah membandingkan timestamp blok dengan pendahulu kausalnya — receive bisa bertanggal sebelum send-nya

Letak Bug:
`xe/core/ledger.go` — `ValidateStagedBlock` (baris 2732–2920) tidak mengandung satu pun cek `Timestamp` (grep `Timestamp` pada rentang itu \= 0 hasil). `validateAndAddReceive` (baris 1081\) mengambil `src := l.GetBlockOrStaged(b.Source)` tapi hanya memeriksa konflik pada send sumbernya, tidak pernah membandingkan `b.Timestamp >= src.Timestamp` — grep `src.Timestamp` di seluruh `core/*.go` \= 0 hasil, dan `leaseBlock.Timestamp` juga 0 hasil. Satu-satunya cek timestamp yang ada adalah per-akun sekuensial (`b.Timestamp < lastTs`, mis. baris 986, 1048, 1128, 1333, 1567, 1655, 1847, 1964, 2206\) dan jendela jam dinding ±1 jam di `addBlock` (baris 769–778) — keduanya tidak memeriksa ordering terhadap pendahulu kausal di akun lain.

Seberapa Buruk Bug nya:
Receive yang bertanggal sebelum send sumbernya, atau accept yang bertanggal sebelum lease-nya, lolos baik validasi live maupun staged. Ini merusak ordering kausal ledger: sebuah receive bisa mengklaim dana pada waktu sebelum dana itu dikirim, dan dana bisa dihitung dalam snapshot pada waktu sebelum dana itu ada — memungkinkan trik relay pada `account_snapshot` (dilaporkan terpisah sebagai XE-11649). Berbeda dari XE-4947 (AddSyncedBlock melewatkan cek jendela timestamp pada blok hasil sync) dan XE-2447 (receive di luar jendela skew jam dinding antar path API) — keduanya soal jendela jam dinding, bukan ordering kausal antar blok; tidak satu pun menutup lubang ini.

### Thread

**Joseph Denne**team2026-11-20 12:59 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-11654 and says what differs; it is read like any other.
