Skip to content

Code4rena

Notional contest

Every publicly disclosed report for Notional contest and what kind of bugs they were.

disclosed reports
27
most reported class
Business logic
bug classes found
5
first disclosure
2021
Find Notional contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Notional contest chose to make public.

Business logic

getVotingPower Is Not Equipped To Handle On-Chain Voting

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.

Notional contest

Medium
Race condition

sNOTE.sol#_mintFromAssets() Lack of slippage control

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.

Notional contest

Medium
Audit finding

Usage of deprecated ChainLink API in EIP1271Wallet

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.

Notional contest

Medium
Business logic

MAX SHORTFALL WITHDRAW limit on BTP extraction is not enforced

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.

Notional contest

Medium
Smart contracts

_validateOrder Does Not Allow Anyone To Be A Taker Of An Off-Chain Order

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.

Notional contest

Medium
Business logic

Cooldown and redeem windows can be rendered useless

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.

Notional contest

High
DoS

Treasury cannot claim COMP tokens & COMP tokens are stuck

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.

Notional contest

High
Business logic

Attackers can force liquidations by borrowing large amounts of an asset.

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.

Notional contest

Medium
DoS

DOS by Frontrunning NoteERC20 initialize() Function

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.

Notional contest

High
Smart contracts

Self transfer can lead to unlimited mint

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.

Notional contest

High
Business logic

nTokenERC20Proxy emits events even when not success

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.

Notional contest

Medium
Access control

Access restrictions on NotionalV1ToNotionalV2.notionalCallback can be bypassed

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.

Notional contest

High
Audit finding

.latestRoundData() does not update the oracle - ExchangeRate.sol

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.

Notional contest

Medium
Business logic

TokenHandler.setToken ERC20 missing return value check

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.

Notional contest

Medium
Business logic

CompoundToNotionalV2.enableToken ERC20 missing return value check

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.

Notional contest

Medium
Access control

DAO proposals can be executed by anyone due to vulnerable TimelockController

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.

Notional contest

High
Business logic

Allowance checks not correctly implemented

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.

Notional contest

Medium
Business logic

Liquidity token value can be manipulated

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.

Notional contest

High
DoS

Potential DOS in Contracts Inheriting UUPSUpgradeable.sol

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.

Notional contest

High
Access control

Access restrictions on CompoundToNotionalV2.notionalCallback can be bypassed

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.

Notional contest

High