Hunt prep
Before you test Notional contest
What 27 disclosed reports say about Notional contest: 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 | 13 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Race condition 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.
-
getVotingPower Is Not Equipped To Handle On-Chain Voting
The function should be changed to use a checkpointing mechanism that returns the voting power at a specific block number, for example by implementing a getPriorVotingPower function.
Disclosed
-
sNOTE.sol#_mintFromAssets() Lack of slippage control
The minting functions should accept a minimum output amount and revert if the pool returns less.
Disclosed
-
Usage of deprecated ChainLink API in EIP1271Wallet
The contract should use latestRoundData and add checks for stale or incomplete rounds.
Disclosed
-
MAX SHORTFALL WITHDRAW limit on BTP extraction is not enforced
The logic should be rewritten to enforce a limit over a time period, such as not allowing withdrawals over 50% per week, giving users time to withdraw.
Disclosed
-
_validateOrder Does Not Allow Anyone To Be A Taker Of An Off-Chain Order
Add require statements to _validateOrder that takerAddress and senderAddress are zero.
Disclosed
-
A Malicious Treasury Manager Can Burn Treasury Tokens By Setting makerFee To The Amount The Maker Receives
The validation should check that makerFee and takerFee are both zero, and the project confirmed it will fix this.
Disclosed
-
Cooldown and redeem windows can be rendered useless
The project refactored how the redemption window is defined to prevent the bypass.
Disclosed
-
Treasury cannot claim COMP tokens & COMP tokens are stuck
The function should transfer the entire COMP balance instead of using pre- and post-balances.
Disclosed
-
No upper limit on coolDownTimeInSeconds allows funds to be locked sNOTE owner
The cooldown period should be capped at a sensible maximum, such as one month, to prevent indefinite locking.
Disclosed
-
nTokenERC20Proxy emits events even when not success
The contract should only emit events when the inner call returns true.
Disclosed
-
Self transfer can lead to unlimited mint
The transfer function should be fixed by adding a check that the sender and recipient are not the same address.
Disclosed
-
.latestRoundData() does not update the oracle - ExchangeRate.sol
The contract should not fetch the latest price directly; it should request an oracle update and wait for the callback before using the price.
Disclosed
-
Access restrictions on NotionalV1ToNotionalV2.notionalCallback can be bypassed
The authorization check should be fixed to verify the actual caller (msg.sender) instead of a user-supplied parameter.
Disclosed
-
DAO proposals can be executed by anyone due to vulnerable TimelockController
The vulnerable contract should be updated to TimelockController v3.4.2.
Disclosed
-
Allowance checks not correctly implemented
The recommendation is to use the whitelist allowance first and then fall back to the specific token allowance, only reverting if the combined allowances are insufficient.
Disclosed