Hunt prep
Before you test Real Wagmi #2
What 21 disclosed reports say about Real Wagmi #2: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Race condition lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Blacklisted creditor can block all repayment besides emergency closure
The fix makes fee collection generic and caches creditor fees for later collection, avoiding direct transfers that could revert.
Disclosed
-
Adversary can reenter takeOverDebt() during liquidation to steal vault funds
The fix was to add the nonReentrant modifier to takeOverDebt(), which was confirmed by the developer.
Disclosed
-
Creditor can maliciously burn UniV3 position to permanently lock funds
The fix stores the initial creditor and uses try-catch around ownerOf calls, falling back to the stored creditor if the call reverts.
Disclosed
-
No slippage protection during repayment due to dynamic slippage params and easily influenced `slot0()`
The issue was fixed by using sqrtPriceLimitX96 to detect front-running and revert if the price limit is worse than expected.
Disclosed
-
old borrowing key is used instead of `newBorrowingKey` when adding old loans to the newBorrowing in LiquidityBorrowingManager.takeOverDebt()
The code was fixed to use newBorrowingKey when calling _addKeysAndLoansInfo.
Disclosed
-
Adversary can overwrite function selector in _patchAmountAndCall due to inline assembly lack of overflow protection
The issue was fixed by limiting the index to a value derived from the calldata length, causing transactions with out-of-range indexes to revert.
Disclosed
-
DoS of lenders and gas griefing by packing tokenIdToBorrowingKeys arrays
The array was replaced with an enumerable set to remove the gas DoS.
Disclosed
-
Incorrect calculations of borrowingCollateral leads to DoS for positions in the current tick range due to underflow
The calculation should subtract borrowedAmount from holdTokenBalance instead, and the text states it was fixed.
Disclosed
-
`computePoolAddress()` will not work on ZkSync Era
The recommendation is to call the Uniswap factory getter `getPool()` to get the address of the pool; the team said they will make changes before deployment on ZkSync Era but do not plan to fix this issue right now.
Disclosed
-
Wrong `accLoanRatePerSeconds` in `repay()` can lead to underflow
The calculation should use the initial borrowed amount (borrowedAmount + removedAmt) instead of the remaining borrowed amount.
Disclosed
-
fee calculations
The pending fee calculation should be wrapped in an unchecked block to allow the intended underflow/overflow.
Disclosed
-
Possible precision loss in `_checkpositionsRange` function
The project says it was fixed in a later commit, though a reviewer noted the linked change did not point to a pull request.
Disclosed
-
The deposit - withdraw - trade transaction lack of expiration timestamp check (DeadLine check)
The protocol should add a deadline check to deposit, withdraw, and trade functions, similar to Uniswap's ensure modifier, to revert expired transactions.
Disclosed
-
The fees are incorrectly updated in the `_deposit` and `_withdraw` functions, which allows the attacker to break the protocol fees
The fee calculation should use the collected fee amounts directly, without subtracting the previously accrued fees.
Disclosed
-
No slippage protection when withdrawing and providing liquidity in rebalanceAll
The project added a price deviation check before withdraw and deposit, and slippage is also checked during exchange.
Disclosed