Hunt prep
Before you test Curves
What 15 disclosed reports say about Curves: 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 | 8 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Theft of holder fees when holderFeePercent was positive and is set to zero
The fix is to always call `onBalanceChange()` in `_transferFees()` regardless of the holder fee percentage, and the project confirmed it will fix the issue.
Disclosed
-
Unrestricted claiming of fees due to missing balance updates in FeeSplitter
The onBalanceChange function should be called during all token transfers, deposits, and withdrawals, for both accounts in a transfer, so that userFeeOffset is accurately tracked.
Disclosed
-
Whitelisted accounts can be forcefully DoSed from buying curveTokens during the presale
The contract should remove a token subject from the ownedCurvesTokenSubjects array when the account's balance for that subject becomes zero, for example in sellCurvesToken and _transfer, or use an EnumerableSet instead of an array.
Disclosed
-
Attack to make CurveSubject to be a HoneyPot
The fee transfer should be made in a way that cannot be blocked by the recipient, for example using Solady's forceSafeTransferETH.
Disclosed
-
Unauthorized Access to setCurves Function
The setCurves function should be restricted with an onlyOwner or onlyManager modifier so only a trusted party can change the Curves reference.
Disclosed
-
Malformed equate statement
The modifier should enforce the ownership check using a require statement so that non-owners are reverted.
Disclosed
-
Protocol and referral fee would be permanently stuck in the Curves contract when selling a token
The protocol and referral fees should be combined into a single amount and sent to the protocol fee destination for both buys and sells, rather than being left in the contract.
Disclosed
-
If a user sets their curve token symbol as the default one plus the next token counter instance it will render the whole default naming functionality obsolete
The report recommends forbidding users from including CURVES in their symbol or making manual naming mandatory.
Disclosed
-
Withdrawing with amount = 0 will forcefully set name and symbol to default and disable some functions for token subject
The withdraw function should reject calls with amount equal to zero.
Disclosed
-
Stuck rewards in FeeSplitter contract
The contract should be modified to prevent stuck rewards, for example by tracking remainders or providing a withdrawal mechanism for excess funds.
Disclosed
-
Selling will be bricked if all other tokens are withdrawn to ERC20 token
The report suggests checking whether the contract's token balance equals the total supply and, if so, sending the holder fee to the protocol instead of the fee redistributor.
Disclosed
-
Single token purchase restriction on curve creation enables sniping
The order of terms in the sum2 calculation should be changed so the expression reads (supply + amount - 1) rather than (supply - 1 + amount).
Disclosed
-
Curves::_buyCurvesToken() , Excess of Eth received is not refunded back to the user.
The contract should calculate the excess as msg.value minus (price + totalFee) and refund it to the caller when greater than zero.
Disclosed
-
onBalanceChange causes previously unclaimed rewards to be cleared
The onBalanceChange function should call updateFeeCredit to claim previous rewards before resetting the user's fee offset.
Disclosed