Hunt prep
Before you test Sense Update #1
What 15 disclosed reports say about Sense Update #1: 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 | 9 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 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.
-
Multiple functions aren't payable so quotes that require protocol fees won't work correctly
The functions were fixed by adding the payable modifier.
Disclosed
-
Refund of protocol fee is being to wrong user
The protocol fee refunds were removed entirely because 0x no longer uses them.
Disclosed
-
Periphery#_swapPTsForTarget won't work correctly if PT is mature but redeem is restricted
The function was fixed by removing the redeem code path when redemption is disabled, so it swaps instead.
Disclosed
-
sponsorSeries() method fails when user want to swap for stake token using
The fix was to change the _transferFrom call to use the sell token and its amount instead of the stake token and stake size.
Disclosed
-
fillQuote uses transfer instead of call which can break with future updates to gas costs
The issue was fixed by replacing transfer with call, and the protocol fees were removed entirely, obviating the need for the fix.
Disclosed
-
Multiple functions may leave excess funds in the contract that should be returned
The project fixed it by returning unused sell tokens to the user inside the from and to target functions.
Disclosed
-
Public vault : Initial depositor can manipulate the price per share value and future depositors are forced to deposit huge value in vault
The recommendation is to require a minimum number of shares to be minted for the first depositor and to send a portion of the initial mints as a reserve to the DAO or burn them, making the price per share more resistant to manipulation.
Disclosed
-
Adversary can brick AutoRoller by creating another AutoRoller on the same adapter
A fix was implemented by considering a trusted caller, but the discussion notes that even trusted callers should not be allowed to create an AutoRoller with a maturity less than an existing one.
Disclosed
-
AutoRoller#eject can be used to steal all the yield from vault's YTs
The fix was to transfer only the amount of target yielded by combining the PT and YT, not the entire contract balance.
Disclosed
-
Code does not handle ERC20 tokens with special `transfer` implementation
The fix was to use safeTransfer from solmate's SafeTransferLib for the affected transfers.
Disclosed
-
Possible DOS in RollerPeriphery `approve()` function
The approve function was fixed so that only a trusted caller can invoke it.
Disclosed
-
AutoRoller.sol#roll can revert if lastSettle is zero because solmate ERC4626 deposit revert if previewDeposit returns 0
The project should not deposit such a small first amount, or should let an admin control how many tokens go into the first deposit.
Disclosed
-
Hardcoded divider address in RollerUtils is incorrect and will brick autoroller
The divider address should be an immutable value passed in via the constructor, and the project fixed it in a pull request.
Disclosed