Bounty
XE-12725 · Bounty

TopUpPendingAmount cast to int64 can wrap negative above MaxInt64, decreasing escrow

Closed · duplicate —claimed Minor web filed 2026-11-14 10:08 UTC by xe:a507b0bb

Report

Ringkasan: store/badger_store.go:867 melakukan cast TopUpPendingAmount ke int64

Thread

xe:a507b0bb2026-11-14 10:13 UTCweb

Klarifikasi terhadap XE-9350 dan XE-9026: laporan ini bukan tentang overflow yang sama. XE-9350 membahas LeaseArchiveGap=MaxInt64 (archive check), XE-9026 membahas LeaseForceSettleGap (force-settle eligibility). Temuan ini spesifik pada store/badger_store.go:867 yang me-cast TopUpPendingAmount (lebar) ke int64 tanpa guard, sehingga nilai di atas MaxInt64 membungkus menjadi negatif dan mengurangi escrow; mem_store.go:338-347 juga tanpa guard overflow. Ini adalah cacat konversi tipe pada lapisan penyimpanan (store), bukan pada logika gap konfigurasi. Perbedaan lokasi (store vs config gap) dan mekanisme (int64 cast wrap vs eligibleAt wrap) menjadikannya temuan terpisah.

Joseph Denneteam2026-11-20 19:45 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-12725 and says what differs; it is read like any other.