The vault contract calculates the exchange rate using the contract's token balance, which can be inflated by direct donation. An attacker can become the first depositor with a tiny amount, donate a large sum to inflate the share price, causing the next depositor to receive zero shares, and then redeem their single share to steal all funds.
The Numa token charges a fee when transferring to certain addresses, but whitelisted spenders such as the UniswapV2Router are exempt. Because that router can also be used to sell tokens, a user could sell Numa on Uniswap without paying the transfer fee.
The setMaxSpotOffsetBps function in NumaOracle suffers from precision loss when computing square root values, causing the spot price to be adjusted by incorrect percentages. This leads to inaccurate conversions between Numa and nuAssets.
The leverageStrategy function accepts a caller-supplied collateral token, which can be a malicious wrapper that re-enters the function. The re-entrant call resets the vault's leverage debt to zero, so the original flash loan is never repaid and the borrowed funds become stuck in the cNuma contract, depressing the NUMA price.
The liquidation mechanism has two flaws: partial liquidations can leave a position with debt below the minimum for partial liquidation but still above bad debt, causing full liquidation attempts to revert due to insufficient collateral to seize; alternatively, partial liquidations can push a position into bad debt, making the remaining debt unprofitable for liquidators. An attacker (or any liquidator) can trigger these states by performing partial liquidations, leaving the protocol with unclearable or loss-making positions.
The leverageStrategy function checks that a user's principal borrow amount increases by exactly the new borrow amount, but the principal also grows from accrued interest, so the check fails. As a result, the leverageStrategy function reverts almost always, blocking users from using it.
The CToken transfer function calls the comptroller's transferAllowed check without first accruing interest, so the check uses outdated collateral and debt values. This can cause legitimate transfers to be reverted and illegitimate transfers to succeed, potentially leading to liquidation.
The protocol's scaling factor for burning assets to NUMA suffers from precision loss because it uses a base of 1000 instead of a larger precision. As a result, users receive slightly less NUMA than they should when calling burnAssetInputToNuma.
A vault's maximum deposit is a percentage of its current balance, so a large holder can sell tokens in a small vault and leave dust, making the maximum fall below the minimum deposit. This soft denial of service prevents other users from depositing meaningfully and pushes them to a larger vault.
The buy function updates the fee PID with the pre-fee Numa amount instead of the actual minted amount, causing the fee to grow incorrectly. This can lead to users paying higher fees than intended.
In deprecated markets, bad debt positions can be liquidated through the regular liquidation path, which includes a liquidation incentive, instead of the dedicated bad debt path. This allows liquidators to repay less than the collateral's value and extract a profit, worsening the protocol's health.
The protocol only supports Chainlink price feeds that quote assets in ETH, but all real-world assets (RWAs) such as gold and oil are only available with USD pairs. As a result, the protocol cannot mint synthetic nuAssets for any RWA.
The collateral factor (CF) check in the minting function runs before the mint instead of after, so a user can mint a large amount of nuAssets and push the CF below the warning threshold. This breaks the stated invariant that new synthetics cannot be minted when the theoretical CF is below 110%.
The debasing calculation rounds down the number of periods, and a malicious user can call the update function at a specific time to cause only one period to be counted instead of two, slowing the debase rate. This keeps the collateral factor low and harms the protocol.
The helper that decides whether ETH sits on the left or right of a Chainlink price feed only looks at the first three characters of the feed description, so a feed named for a liquid staking token starting with 'ETH' is misread as ETH being the numerator. This causes the protocol to price such assets incorrectly.
The leverageStrategy function in the lending contract borrows and swaps tokens without any slippage limit or deadline, so the amount borrowed can be larger than the user intended. A user opening a leveraged position could therefore end up with more debt than expected if the swap executes at an unfavourable price.
NU
Numa
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.