Crypto exploits

NovaBox exploit analysis

A flash-loan-funded constructor bypassed NovaBox's extcodesize deposit guard and joined its dividend list with an uninitialized checkpoint, letting a single withdrawal pay out the entire unclaimed ETH dividend backlog. DeFiHackLabs and the attack transaction put the loss at 56.73 ETH, about $92,900 on the day, per Etherscan's estimate.

David

Security ·

Reported loss
$93K
Occurred
Logged
Chain
Ethereum

Logged as “2026-06-09: Constructor Dividend Checkpoint Bypass on NovaBox”.

Analysis4 min read

NovaBox took ETH and NOVA token deposits together and paid depositors a share of pooled ETH as a dividend. Its source is verified on Etherscan at 0xbc4191167D4B0251cAB5201a527Daa8a7d3846b0 under the name NovaBox, and exposes depositTokens(address randomAddr, uint256 randomTicket), withdrawEth(uint256 amount), and a public contributionsEth balance mapping. The two depositTokens parameters, a referral-shaped address and a numbered ticket, suggest a referral or lottery feature bolted onto the deposit flow. What it does is not established from the sources available here, and the exploit does not depend on it.

The missing checkpoint

NovaBox tries to stop contracts from depositing ETH directly, a common guard against flash-loan-funded sybil deposits, by requiring extcodesize(msg.sender) == 0 before crediting a deposit. That check does nothing against a contract still inside its own constructor: at that point in execution the contract's own bytecode has not yet been written to the chain, so its extcodesize reads zero even though it is seconds away from being a fully functional contract. Separately, depositTokens enrols a new dual ETH/NOVA depositor into NovaBox's dividend list without setting that depositor's dividend checkpoint, the value every later payout is measured against. A checkpoint left at its default of zero tells the contract the depositor has never been paid any of the ETH dividend pool, so a first withdrawal pays out the entire backlog accrued since the pool existed, not the sliver earned since joining.

Three contracts, one transaction

DeFiHackLabs's proof of concept chains both gaps together inside a single call:

  1. A root contract borrows 427.5 WETH from Aave V3's pool via flashLoanSimple and forwards a small NOVA balance to a flash-loan receiver contract.
  2. Inside executeOperation, the receiver unwraps the WETH to ETH and spends it constructing a helper contract, passing the ETH in as that new contract's constructor value.
  3. Still inside its own constructor, before its bytecode is written to the chain, the helper calls depositTokens with its NOVA balance, joining NovaBox's dividend list with a checkpoint of zero.
  4. In the same constructor call, it deposits the ETH into NovaBox through a raw low-level call, passing the extcodesize guard because the helper has no code yet.
  5. It immediately calls withdrawEth for its full contributionsEth balance, and NovaBox pays out both the ETH principal and the backlog of dividends measured against the zero checkpoint.
  6. The helper forwards everything to the flash-loan receiver, which wraps enough ETH to repay the 427.5 WETH principal plus a 0.2138 WETH premium and sends the remainder up to the root contract, which forwards the final balance to the attacker.

The numbers and what happened to them

DeFiHackLabs's README puts the loss at 56.73 ETH. The attack transaction, 0x0cfa357e9e4db1540246f17cb6bfa0634ff8727d7cf241b63fb22605021c8844, confirms it: it landed in block 25,281,768 on June 9 2026 at 18:48:59 UTC, moved 427.5 WETH out of Aave, and returned 56.73 ETH to the attacker's wallet, 0x3690c5EFc63eeA1167c4d92a3f2dD8afdb85C294. Etherscan's transaction page shows the 56.73 ETH transfer at an estimated $92,947.70 on the day of transfer (about $127,012 at the current ETH price when viewed), a figure from Etherscan's price lookup rather than one NovaBox or DeFiHackLabs published itself.

The entire attack ran inside one transaction funded by the Aave flash loan rather than the attacker's own capital, so there is no pre-funding trail to trace. The 56.73 ETH sits in the attacker's wallet with nothing on chain showing it move onward to a bridge, a mixer, or an exchange. No post-mortem, security-firm write-up, or news coverage of the incident exists beyond DeFiHackLabs's own reconstruction and the verified contract source. NovaBox has no public statement addressing the drain: no pause, no patch announcement, no bounty, no compensation. The README's only outside reference is a post from the X account DefimonAlerts. X posts are not retrievable by automated tools, so what that post adds beyond the README's own account could not be checked.

A repeat of the same accounting gap

The same root cause, a reward checkpoint never stamped to the pool's current accumulated value when a new participant enters, shows up again in AlpsCon, where a fresh stake in a still-open reward hub inherited the hub's entire historical per-share reward total because the stake's own entry marker was left at zero. NovaBox's version pays out the backlog in ETH the moment a zero-checkpoint depositor withdraws. AlpsCon's version let a migrated contract version carry old accounting forward across upgrades. Both turn a per-share dividend design into a drain the instant a checkpoint is left uninitialized for a new entrant.

What a fix would have looked like

One line would have closed the dividend side of this: setting the new depositor's checkpoint to the pool's current dividend-per-share value inside depositTokens, before the deposit is recorded, the way a staking pool calls an update step before crediting a new participant. The extcodesize bypass needs a different fix, since any constructor-based deposit will always read as code-free. A reentrancy flag or a minimum-elapsed-block check in place of extcodesize would have closed that path without touching the dividend logic at all.

Sources read (5)

Other exploits

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.