Umbrella Network Hack

Reported loss $700K
BNB Chain Ethereum
Other

What happened

On March 20, 2022, an attacker drained the LP tokens staked in Umbrella Network's Polar Stream reward pools on Ethereum and BNB Chain, taking about $700,000. The bug was an integer underflow in the staking contract's withdraw() function, which let the attacker withdraw far more than they had deposited.

withdraw() subtracted the requested amount from the caller's balance without first checking that the balance was large enough, and the arithmetic was not checked for underflow. A withdrawal larger than the balance did not revert. The balance wrapped around to a huge number, and the contract sent out the requested LP tokens. The attacker took all the UMB-ETH Uniswap and UMB-BNB PancakeSwap LP tokens in the pools, removed that liquidity, and sold more than 2.2 million UMB on the open market.

Umbrella said it would buy back 2.2 million UMB to offset the dump. Its insurance partner Uno Re accepted a claim and paid affected users up to $10,000 each, covering 91% of affected wallet addresses; this was Uno Re's first claim payout.

Attacker: 0x1751e3e1aaf1a3e7b973c889b7531f43fc59f7d0

Attack contract: 0x89767960b76b009416bc7ff4a4b79051eed0a9ee

How it happened

  1. The Polar Stream StakingRewards contract held users' staked UMB-ETH and UMB-BNB LP tokens.
  2. The attacker, through a contract, called withdraw() with an amount far larger than their staked balance.
  3. withdraw() computed _balances[user] - amount without a balance check or safe math, so the subtraction wrapped around instead of reverting, and the contract sent out the LP tokens.
  4. The attacker repeated this on Ethereum and BNB Chain and emptied both pools.
  5. They removed the stolen liquidity from the Uniswap and PancakeSwap pools and sold more than 2.2 million UMB, for about $700,000 in losses.

Protocol details

Classification Other / Access Control
Protocol Type Oracle
Affected asset / contract UMB
Implementation language Solidity
Protocol links Website @UmbNetwork

Understand the attack patterns

Build your security review skills

Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.