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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
SC
Sherlock contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.