Bitter Rouge Alpaca
High
When cToken.totalSupply() == 0
, an attacker can make the first deposit in a way that leads stealing of funds of other depositors. This is popularly known as first deposit bug. Since Numa cToken
is fork of compound cToken
, the same bugs inherited into the Numa cToken
as well.
The issue is already explained in detail here.
- Requires initial
cToken.totalSupply()
to be 0 - And subsequent users deposits
No response
No response
Stealing funds of initial depositors
https://github.com/akshaysrivastav/first-deposit-bug-compv2/blob/main/test/Attack.ts
Mint initial liquidity to address(0), similar to uniswap