Hunt prep
Before you test Spectra Finance
What 32 disclosed reports say about Spectra Finance: 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 | 19 | 0 | – | – | $0 |
| Smart contracts lesson | 10 | 0 | – | – | $0 |
| Misconfiguration 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.
-
Unchecked Low-Level Call in TRANSFER_NATIVE in Dispatcher::_dispatch Can Lead to Locked Ether and Potential Theft
The transfer should check the success flag of the low-level call and revert when it is false, so a failed send cannot leave Ether in the contract.
Disclosed
-
Incorrect balance check in PT redemption commands
The YT balance check should be replaced with a PT balance check in both REDEEM_PT_FOR_ASSET and REDEEM_PT_FOR_IBT commands.
Disclosed
-
Dispatcher does not check if native transfers are successful
The contract should check the success flag of the native transfer and revert if it fails.
Disclosed
-
_dispatch() incorrectly assumes revert bubbling when transferring native tokens.
The code should check the success boolean returned by the low-level call and revert if it is false.
Disclosed
-
Inconsistency in CurvePoolUtil
The two functions should be changed to use mulDiv when calculating minAmounts, matching the NG variant.
Disclosed
-
Users ETH could be stuck forever without a way to recover it
The contract should check the success of the native transfer and revert if it fails.
Disclosed
-
Dispatcher incorrect validation causes principal tokens to be stuck in inheriting contract allowing attacker to steal user funds
The dispatcher should only apply the YT balance cap before maturity and skip it once the principal token has expired.
Disclosed
-
Lack of validation in native transfer allows attacker to steal user funds
The contract should check the success of the low-level call and revert if it fails, or otherwise ensure that failed transfers do not leave funds in the contract.
Disclosed
-
Unchecked low-level ETH transfer in Dispatcher.sol may lead to undetected failures
The contract should check the success flag of the low-level call and revert when the transfer fails, so the user is alerted instead of losing funds silently.
Disclosed
-
Silent ETH transfer failure in TRANSFER_NATIVE command can permanently lock user funds
The contract should check the success boolean of the low-level call and revert the transaction if the transfer fails.
Disclosed
-
Incorrect NatSpec Tag in removeRateOracle() Misrepresents Function Reference
The NatSpec comment should be corrected to reference IRateOracleRegistry-removeRateOracle instead of addRateOracle.
Disclosed
-
Lack of ETH Success Transfer Checks in Dispatcher.sol
The transfer should be fixed by checking the returned success value and reverting when the call fails.
Disclosed
-
Dispatcher._dispatch() does not revert on failure of transfer of funds when called with the TRANSFER_NATIVE command
The code should check the success boolean and revert with a CallFailed error if the transfer fails, as done for other commands.
Disclosed
-
Boolean success returned from address.call{value: amount}() not checked
The code should check the returned success boolean and revert if the transfer fails.
Disclosed
-
Silent execution failure on Dispatcher::_dispatch due to unchecked return value on Dispatcher:TRANSFER_NATIVE operation
The code should check the success flag and revert with a custom error if the native transfer fails; additionally, Router::execute could return a boolean for callers to check.
Disclosed