Revamp pays a contributor's pending reward, capped at twice their contribution, whenever a later call to `revamp()` runs. An attacker contributed a worthless self-issued token through two attacker-controlled addresses to push that calculation to its cap, for a reported loss of 2.99 BNB.
Security ·
Logged as “2026-03-19: Reward Accounting Drain on Revamp”.
Revamp is a BNB Smart Chain contract at 0x46280C1A2e17CfC151f50a885363408368BB163A that lets users list an asset and contribute it through revamp(), with the protocol paying contributors a reward out of its native BNB balance, capped at twice their own contribution. Its own proof-of-concept comments describe the design plainly: Revamp rewards earlier contributors when later users call revamp(), meaning a contribution does not just register the contributor, it can trigger a payout to whoever contributed before them. Revamp's verified source shows exactly how: every call to revamp() raises a shared accumulator, accRewardPerShare, by the new contribution's net value divided by the total native BNB contributed so far, then recomputes the caller's own reward debt against that new accumulator so the caller's own pending balance resets to zero. Anyone else already holding a stake sees their pending reward rise by their own totalContributed times that same increase, capped by pendingReward() at twice what they put in, minus whatever they already claimed.
That design has no check on who triggers the payout or what they contribute to do it. revamp() requires only that the token is listed and its decimals() falls within a wide bound. listNewAsset() requires only a listing fee and that the token answers decimals(), name() and symbol(), which a minimal ERC20 can do without holding any value at all. The attacker, at 0x42579d63bd5945fcfde5adff4edc40c34869914e, borrowed BNB by flash loan from a Pancake V3 WBNB pool, covering a listing fee and two contributions. First, the attacker listed a FakeRevampToken, a minimal ERC20 the attacker had just deployed with a token supply of two units and no backing value, and contributed one unit of it to Revamp through a direct call, sizing the contribution's native-BNB component to exactly half of Revamp's balance at the time and naming an attacker-controlled helper contract as the referrer. Second, the helper contract made its own contribution of the second fake-token unit, sized to exactly twice the running total Revamp had received once the attacker's own contribution was added. Under the accumulator math in the verified contract, that sizing is not approximate: it raises accRewardPerShare by precisely enough that the first contribution's totalContributed, multiplied by the increase, lands exactly on its 2x cap, with nothing wasted and nothing short. The helper then withdraws only its principal, the attacker withdraws its principal plus the capped reward, the referral fee from the helper's contribution accrues to the attacker as well, and the flash loan is repaid out of what remains.
DeFiHackLabs' test asserts a profit above 2.9 BNB against a documented loss of 2.99 BNB. The attack transaction's on-chain record confirms it independently of that test: it was sent from the same attacker address, mined in block 87,423,341, with a block timestamp of 02:57:12 UTC on 19 March 2026, matching the date in the README entry. The transaction itself is a contract creation rather than a call to an existing address, and its input data embeds the Pancake V3 pool and the Revamp contract addresses directly, consistent with a one-shot attack contract that deploys and runs the whole sequence within a single transaction. The figures above come from BNB Smart Chain's own record of the transaction rather than from a block explorer.
No coverage of the incident beyond DeFiHackLabs and the DefimonAlerts post it cites was found, no listing appears in DeFiLlama's hacks database, which does not cover a loss this small, and no statement from whoever operates Revamp about the incident has surfaced. Given the contract's design, listing an asset and contributing it appears open to anyone, which means the vulnerability is not an access-control gap so much as a missing distinction between a contribution with economic substance and one that is merely a self-issued token moved between two addresses the same person controls.
Revamp's claim() function takes no arguments: it calls withdraw() with the caller's full pending reward, debiting claimedSoFar in the same call. The exploit runs entirely through revamp() and the 2x reward cap described above.
What would have prevented it is tying the reward calculation to value the protocol can verify, not to a contribution denominated in a token nobody but the contributor has ever priced, and requiring that listNewAsset() check for more than a successful call to decimals(), name() and symbol(). A reward cap of twice a contributor's own stake is only a safeguard against that contributor claiming too much against their own money. It is not a safeguard against the contract itself miscounting what a worthless token's "contribution" was worth in the first place.
Query every incident yourself — free, no signup
Updated 9 Nov 2026. Figures are as reported by the sources listed above and are not independently verified.