Hunt prep
Before you test Sherlock contest
What 11 disclosed reports say about Sherlock 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 | 8 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
| Smart contracts 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.
-
Reenterancy in _sendSherRewardsToOwner()
The report recommends adding a reentrancy guard or using the checks-effects-interactions pattern by deleting the reward before transferring the tokens.
Disclosed
-
updateYieldStrategy will freeze some funds with the old Strategy if yieldStrategy fails to withdraw all the funds because of liquidity issues
The update function should fail if the strategy cannot withdraw all funds, and a separate force update function should be provided; also, yieldStrategyWithdrawAll should accept a strategy argument to allow withdrawals from any strategy.
Disclosed
-
first user can steal everyone else’s tokens
The report recommends forcing users to stake at least a minimum amount (e.g., 1e18) to make the attack economically unrealistic.
Disclosed
-
tokenBalanceOfAddress of nftOwner becomes permanently incorrect after arbRestake
The functionality was removed altogether, as confirmed by the project; alternatively, the fix would be to update addressShares when _redeemShares is called for a partial decrease.
Disclosed
-
SherlockClaimManager : Incorrect amounts needed and paid for escalated claims
The documentation was updated to explain the correct burned amount, and the report suggests changing the bond parameter to 1 so that the bond is treated as a reward and UMA's bond is minimal.
Disclosed
-
Single under-funded protocol can break paying off debt
The team considered requiring withdrawals to leave at least two days of remaining balance, giving governance time to remove a protocol before it runs dry.
Disclosed
-
Yield distribution after large payout seems unfair
The suggested mitigation was to stop calling payout with a non-zero unallocated SherX amount.
Disclosed
-
[Bug] A critical bug in bps function
The bps function should be fixed to not rely on calldata length, for example by passing the token address explicitly as a parameter.
Disclosed
-
reputation risks with updateSolution
The project should add safeguards such as a time delay before updates take effect, allowing users to review changes and withdraw funds if desired.
Disclosed
-
_doSherX optimistically assumes premiums will be paid
The function should pay off all accrued premiums before calculating the payout amount, or adjust the calculation to reflect only actually paid premiums.
Disclosed
-
Incorrect internal balance bookkeeping
The issue should be fixed by requiring that the contract's actual token balance increases by the deposited amount, or by updating the pool based on real balance changes.
Disclosed