Hunt prep
Before you test Numa
What 16 disclosed reports say about Numa: 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 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 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.
-
Vault is vulnerable to inflation attack which can cause complete loss of user funds
The vault should burn a small number of shares (e.g., 1000 wei) on the first deposit to prevent share price inflation, as done by Uniswap.
Disclosed
-
Numa tokens fee on transfer can be bypassed
The fee-on-transfer logic should be changed so that the whitelist exemption applies only to the intended operation, such as adding liquidity, and not to selling.
Disclosed
-
Precision loss in setMaxSpotOffsetBps function leads to Incorrect Numa Prices
Increase the precision of `_maxSpotOffsetBps` to avoid precision losses.
Disclosed
-
Incorrect liquidation mechanics either causes revert on liquidation due to insufficient seizeTokens or causes transition into bad debt
The mitigation suggests adding checks to prevent partial liquidations that would lead to bad debt, allowing full liquidation with reduced incentive, and permitting seizure of all available collateral when seizeTokens exceeds the borrower's balance.
Disclosed
-
leverageStrategy will revert due users interest rate accrual
The previous borrow amount should be read using borrowBalanceStored, which includes accrued interest, instead of the raw principal.
Disclosed
-
Before transferring `CToken`, the `accrueInterest()` function should be called first
The transfer function should call accrueInterest before checking transferAllowed.
Disclosed
-
User will Received Less Amount Of Numa
The precision should be increased to 1e18 or a value larger than 1000.
Disclosed
-
Vaults can be purposefully bricked by leaving small amounts of rETH
The protocol should track Numa balances internally so tokens can only be sold in the vault that minted them, and add a toggle to disable the maximum-percent check so admins can restore a vault's liquidity.
Disclosed
-
Buy fee PID is updated with wrong amounts leading to unexpected fee growth
The code should be fixed to call updateBuyFeePID with the actual minted amount.
Disclosed
-
Deprecated markets allow profitable exploitation of bad debt liquidations
The protocol should add a check to prevent the regular liquidation path from being used for bad debt positions even in deprecated markets, forcing the use of the bad debt liquidation path.
Disclosed
-
No RWAs have a chainlink feed in ETH, so RWAs cannot be minted as nuAssets
The protocol should convert asset/USD prices to asset/ETH using the ETH/USD price feed.
Disclosed
-
CF minimum can be bypassed when minting nuAssets
The modifier should be changed to check the CF after the minting logic runs, so the post-mint CF is validated.
Disclosed
-
Debasing/rebasing periods can be decreased by 50% by a malicious actor
The formula should be refactored to avoid rounding errors, for example by using a more precise calculation or accumulating remainders.
Disclosed
-
OracleUtils.ethLeftSide() is not correct for some tokens, leading to incorrect nuAsset pricing
The check should compare the first four characters against 'ETH/' so only genuine ETH-denominated feeds are treated as having ETH on the left.
Disclosed
-
No slippage check for leverageStrategy function
The function should accept a caller-supplied maximum borrow amount (and a deadline) and revert when the computed borrow amount exceeds it; the same protection should be added to closeLeverageStrategy.
Disclosed