Skip to content

Code4rena

Sherlock contest

Every publicly disclosed report for Sherlock contest and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
4
first disclosure
2021
Find Sherlock contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Sherlock contest chose to make public.

Smart contracts

Reenterancy in _sendSherRewardsToOwner()

The contract deletes the reward mapping after making an external token transfer, so if the token allows a callback the attacker can re-enter and claim the same reward repeatedly. This could drain the contract's entire SHER balance.

Sherlock contest

Medium
Business logic

updateYieldStrategy will freeze some funds with the old Strategy if yieldStrategy fails to withdraw all the funds because of liquidity issues

The updateYieldStrategy function attempts to withdraw all funds from the old strategy and then unconditionally removes it, but if the strategy cannot withdraw all funds due to liquidity issues, the remaining funds become frozen because the old strategy only allows the Sherlock contract to withdraw. An attacker could not directly exploit this, but the protocol itself could lose access to funds.

Sherlock contest

Medium
Business logic

first user can steal everyone else’s tokens

The staking contract calculates shares using a formula that can round down to zero when a large donation is made before a victim stakes. An attacker can front-run a victim's stake with a direct token transfer, causing the victim to receive no shares while the attacker redeems all funds.

Sherlock contest

High
Business logic

tokenBalanceOfAddress of nftOwner becomes permanently incorrect after arbRestake

The arbRestake function reduces an NFT's stake shares but does not update the owner's addressShares, so tokenBalanceOfAddress reports an inflated balance that persists even after the NFT is transferred. An attacker could exploit this to show a false higher balance, potentially affecting reward calculations or other logic that relies on the reported balance.

Sherlock contest

Medium
Business logic

SherlockClaimManager : Incorrect amounts needed and paid for escalated claims

The SherlockClaimManager contract requires the protocol agent to pay more than documented when escalating a claim, because UMA burns half of the bond plus the final fee. This means the agent cannot recover the full stake as promised, losing a portion of the bond and fee.

Sherlock contest

Medium
DoS

Single under-funded protocol can break paying off debt

The payOffDebtAll function loops over every protocol and subtracts each one's accrued debt from its balance; if any single protocol lacks funds, the subtraction reverts and the whole transaction fails. Because many core functions require debt to be paid off first, one under-funded protocol can block actions such as setting token price, setting premiums, withdrawing balances and redeeming.

Sherlock contest

High
Business logic

Yield distribution after large payout seems unfair

The reporter argued that a large payout reducing the unallocated SherX pool could leave later users unable to claim their yield, while earlier users were paid in full. The project disputed the fairness claim but confirmed a related medium-risk issue where a payout with a non-zero unallocated amount could block a user from harvesting again or transferring their lock tokens.

Sherlock contest

Medium
Business logic

[Bug] A critical bug in bps function

The bps function reads the token address from the end of calldata, but an attacker can append extra data to make it return a different address. This allows the unstake function to compute amounts using one token but transfer another, potentially profiting if the transferred token is more valuable.

Sherlock contest

High
Access control

reputation risks with updateSolution

The contract's updateSolution function allows the owner to change any part of the contract, potentially accessing all funds. This creates a reputation risk as the project could be flagged for a rug pull, even if intended for upgrades.

Sherlock contest

Medium
Business logic

_doSherX optimistically assumes premiums will be paid

The `_doSherX` function only pays off accrued premiums for tokens where the payout would otherwise revert, but calculates the payout amount assuming all premiums are paid. An attacker could receive an inflated payout because the calculation overestimates the available underlying balance.

Sherlock contest

Medium
Business logic

Incorrect internal balance bookkeeping

The smart contract system tracks user deposits using internal bookkeeping without verifying that the actual token balance increased by the expected amount. An attacker can use deflationary or fee-charging tokens to deposit less than the recorded amount and still receive full rewards and yield.

Sherlock contest

Medium