The getVotingPower function calculates voting power based on the current sNOTE balance and total supply without using a checkpointing mechanism. An attacker could vote, transfer their sNOTE to another account, and vote again, effectively double voting.
The minting functions pass a hardcoded minimum output of zero when joining a Balancer pool, so there is no slippage protection. An attacker could front-run the transaction and manipulate the pool so the caller receives fewer pool tokens than expected.
The EIP1271Wallet contract uses the deprecated Chainlink latestAnswer API, which returns 0 if no answer is available and may have inconsistent decimals. An attacker could exploit this to cause incorrect pricing, potentially leading to loss of funds.
The sNote contract's function for extracting tokens to cover collateral shortfall allows the owner to withdraw up to 50% of the total BPT, but this limit is not enforced across multiple calls. An attacker (the owner) could call the function repeatedly to withdraw almost all BPT, increasing risk for stakers.
The EIP1271Wallet contract's _validateOrder function does not check that takerAddress and senderAddress are zero, allowing the treasury manager to set them to restrict who can fill off-chain orders. This lets the manager extract value by maximising slippage.
The treasury manager contract's order validation did not check that maker and taker fees were zero, allowing a malicious manager to set makerFee equal to the maker amount so the contract received no tokens from a swap. This could burn treasury tokens at no cost to the order taker.
The cooldown and redeem window mechanism in the sNOTE contract could be bypassed because an account could start a cooldown, wait for it to end, and then deposit and redeem freely during the redeem period, making the cooldown useless. Multiple accounts could also be used to hop between redeem windows, rendering the redeem window ineffective.
The TreasuryAction contract's claimCOMPAndTransfer function uses pre- and post-balances to determine how much COMP to transfer, but anyone can claim COMP on behalf of the contract, causing the contract's balance to increase without the function's knowledge. An attacker can repeatedly claim COMP for the contract, making the contract unable to claim COMP itself and leaving the claimed COMP stuck in the contract.
The sNOTE contract allows the owner to set an arbitrarily large cooldown period, which can cause the startCooldown function to always revert, locking users' funds indefinitely if ownership is compromised.
The contract calls ERC20 transferFrom without checking the return value, so tokens like USDT that return void will cause the call to revert. This makes such tokens unusable in the protocol.
An attacker can borrow a large amount of an asset to artificially inflate the oracle interest rate, potentially forcing liquidations of other users' collateral. The report argues that arbitrage incentives are insufficient to prevent this manipulation, though the protocol team disputes the severity.
The deployment script deploys the NoteERC20 proxy contract and calls its initialize() function in separate transactions, allowing an attacker to front-run the initialization and become the owner. This can be repeated to prevent deployment, causing a denial of service and wasted gas.
The transfer function in nTokenAction.sol incorrectly handles self-transfers by making the amount negative and then converting it back to positive, which can lead to unlimited minting of tokens. An attacker could exploit this to mint an arbitrary number of tokens.
The nTokenERC20Proxy contract emits Transfer and Approval events regardless of whether the underlying token operation succeeded. An attacker could exploit this to mislead off-chain systems that rely on these events into treating failed transfers or approvals as successful.
The notionalCallback function's access control can be bypassed by passing sender as the contract's own address, allowing an attacker to steal tokens from any account that has approved the contract. An attacker can front-run a victim's migration transaction to withdraw the victim's funds and deposit them into their own account.
The oracle's latestRoundData() returns a stale price rather than the current price, so an attacker could deposit when the price is outdated and withdraw after it updates, profiting from the difference. This could lead to a large loss of funds.
The setToken function calls ERC20.approve() but ignores the boolean return value. Tokens that return false instead of reverting on failed approval are treated as successfully approved, so the contract may proceed with an unapproved token.
The TokenHandler.safeTransferIn function uses the standard IERC20 transferFrom, which expects a boolean return value. For non-standard tokens like USDT that do not return a value, the call reverts, breaking withdrawals for those tokens.
The TokenHandler.safeTransferOut function uses a standard IERC20 transfer call that reverts for tokens like USDT which do not return a boolean, breaking deposits for such tokens. An attacker could not exploit this directly, but it causes a denial of service for legitimate users.
The enableToken function calls ERC20.approve() but ignores the boolean return value. Tokens that return false on failed approval are still treated as approved, so the contract may proceed as if approval succeeded when it did not.
The TimelockController contract checks whether a proposal was scheduled only after executing the batch, allowing an attacker to insert a call that schedules the batch itself. This lets anyone who can create a proposal become the Timelock admin and execute arbitrary transactions as the DAO.
The token approval logic checks the whitelist allowance first and reverts if it is insufficient, even when the specific token allowance would be enough. This causes transfers to fail despite having sufficient allowance.
The value of a liquidity token was calculated using the current market reserves, which an attacker could manipulate via flash loans. This could cause the collateral value of the token to decrease, potentially leading to unwarranted liquidations.
The implementation contract behind the NoteERC20 proxy was left uninitialized, allowing any user to become its owner. That user could then upgrade the implementation to a malicious contract that self-destructs, causing a denial of service for all NoteERC20 interactions until a new implementation is deployed.
The notionalCallback function in CompoundToNotionalV2 only checks that the sender parameter equals the contract's own address, but an attacker can pass sender = this to bypass this check. An attacker can then call the function with a victim's account, causing the victim's approved tokens to be transferred to the contract and stuck, effectively burning them.
NC
Notional contest
High
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.