Reproduced Exploit
EyeOnTheSky — burn mixes reflection units with token units
burn subtracts its argument from _rOwned and from _tTotal, and it does not subtract it from _rTotal. The published receipt burns 692849680681943412647198, which is far larger than the holder's token balance and small enough to fit in their reflection balance. After that burn the pair's balanceOf is…
Loss
~$68.7K. The receipt and this reconstruction both move 124.702548070145220571 WBNB.
Chain
BNB Chain
Category
defi
Date
Nov 2026
Source
DeFiHackLabs
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack replays in your browser. Step through it by Solidity line or by opcode.
The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. Query opens a search over the trace: previous and next writes, balance changes and calls, breakpoints, and a diff of everything that changed between two steps. No backend, no live RPC.
Source & credit. Exploit reproduction, trace data, and analysis adapted from DeFiHackLabs by SunWeb3Sec — an open registry of reproduced on-chain exploits. Standalone Foundry PoC and full write-up: 2026-11-EyeOnTheSky_exp in the
evm-hack-registrymirror. Upstream DeFiHackLabs PoC:src/test/…/EyeOnTheSky_exp.sol.
On 29 November 2026 the EyeOnTheSky token on BNB Chain let a holder call
burnwith an amount taken from their reflection balance. That call reduced the token-unit supply by the same number and left the reflection supply unchanged. The PancakeSwap pair's reported token balance fell to 1,syncstored that 1, and a second burn of 3 units made the reported balance jump without a transfer. The pair'sswaptreated the gap as tokens received and sent out its WBNB.Vulnerability classes: vuln/defi/reserve-manipulation · vuln/arithmetic/unit-mismatch
TL;DR#
burn subtracts its argument from _rOwned and from _tTotal, and it does not subtract it from _rTotal. The published receipt burns 692849680681943412647198, which is far larger than the holder's token balance and small enough to fit in their reflection balance. After that burn the pair's balanceOf is 1. sync writes 1 into the token reserve and leaves the WBNB reserve unchanged. Burning 3 more units makes balanceOf of the pair 6821335301070826993102 with no transfer in. swap then pays 124.702548070145220571 WBNB, the same amount as the published receipt, and leaves 1 wei in the pair.
The same swap, without the two burns, reverts. The WBNB does not move.
Key information#
| Chain / block / date | BNB Chain, block 136510890 (one block before the transaction), 2026-11-29 |
| Victim | EyeOnTheSky 0x6B9Fb752ac6b37C20E975B2f5fFB38806Be16a7E, pair 0x8835E92544313ABdBd80d3Fcd09239c7ddFC4b36 |
| Loss | ~$68.7K. The receipt and this reconstruction both move 124.702548070145220571 WBNB. |
| Bug class | burn subtracts one number from a reflection balance and from the token-unit supply |
| Attack tx | https://bscscan.com/tx/0xd5a678978cfece2a1a6d31696d2e92af4be6a0e57e29f12000d138296a8679fd |
| Fix | Subtract token units from _tTotal and the matching reflection units from _rOwned and _rTotal. Do not pass a reflection-sized integer to the token-unit supply. |
What happened#
The published transaction is a contract creation from 0x0afCc6720f438907Ca3bEfc24df9036984AE7311 in block 136510891. Its receipt has two token burns from 0xC716052513EE76914F63d1cB983C881b6f6090a7, a pair Sync, and a Swap whose amount1Out is 124.702548070145220571 WBNB. The WBNB leaves the pair for 0xa69f137aa810f1872c1a5bcd0b0cac8560fdd371.
One block earlier the pair held 681556431511614227095644 of the token and 124.702548070145220572 WBNB. Replaying the receipt's calls there:
- The holder calls
burn(692849680681943412647198). The pair's reported token balance becomes 1. syncstores reserve(1, 124702548070145220572).- The holder calls
burn(3). The pair's reported token balance becomes 6821335301070826993102. No tokens were transferred in. swap(0, reserveWBNB - 1, recipient, "")sends 124.702548070145220571 WBNB. The pair keeps 1 wei.
Root cause#
function _burn(address _who, uint256 _value) internal {
require(_value <= _rOwned[_who]);
_rOwned[_who] = _rOwned[_who].sub(_value);
_tTotal = _tTotal.sub(_value);
emit Transfer(_who, address(0), _value);
}
_rOwned is a reflection balance. _tTotal is the token-unit supply. The check compares those two different units, then subtracts the same integer from both. _rTotal is not updated, so the rate _rTotal / _tTotal changes. balanceOf for an ordinary account is _rOwned / rate, so the pair's reported balance moves even though its reflection balance did not. sync then copies that reported balance into the reserve, and swap treats a later increase as tokens paid in.
Why it matters#
The pair's liquidity providers lose the WBNB. The published receipt and this reconstruction move the same 124.702548070145220571 WBNB. A swap for that amount without the burns reverts, so the burns are what make the payout possible. burn is public. The caller can be any account whose reflection balance is at least the amount passed in.
How it was fixed#
Account for the burn in one unit system. If the argument is a token amount, convert it to reflection units before subtracting from _rOwned, and subtract that reflection amount from _rTotal as well as the token amount from _tTotal. A reserve update should follow a real transfer into the pair, not a supply change in the token.
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 2026-11-EyeOnTheSky_exp (evm-hack-registry mirror).
- Upstream DeFiHackLabs PoC:
EyeOnTheSky_exp.sol. - Attack transaction: view on explorer.
Alerts & third-party analyses
- DeFiHackLabs incident explorer: search "EyeOnTheSky".
- Web3Sec X hacked database: search.
- Rekt leaderboard: search.
- Solodit incident search: search.
These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.