Skip to content

Sherlock

LooksRare YOLO

Every publicly disclosed report for LooksRare YOLO and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find LooksRare YOLO on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what LooksRare YOLO chose to make public.

Business logic

User can get free entries if the price of any whitelisted ERC20 token is greater than the round's `valuePerEntry`

The contract does not enforce that a token's declared type matches its actual standard, so a user can deposit an ERC20 token while claiming it is an ERC721. Because the transfer call for ERC721 uses the same function signature as ERC20 and the user supplies zero amounts, the transfer succeeds without moving any tokens, granting free entries.

LooksRare YOLO

High
Business logic

Users can deposit "0" ether to any round

The depositETHIntoMultipleRounds function allows a user to deposit zero ether into any round by including zero amounts alongside a normal deposit, because the zero amount passes the modulo check and does not affect the total expected value. This lets an attacker add zero-value entries to rounds, which can alter the winner selection by changing the indexes array.

LooksRare YOLO

High
DoS

fulfillRandomWords() could revert under certain circumstances

The fulfillRandomWords function in a Chainlink VRF consumer could exceed the 2,500,000 gas limit and revert, causing a denial of service that halts the game. An attacker could trigger this by healing many wounded agents, making the game unplayable.

LooksRare YOLO

Medium
Business logic

Attacker can steal reward of actual winner by force ending the game

The game determines the winner by the lowest agent index, and a player can escape all but one wounded agent to instantly end the game, even if another player still has an active agent. This allows the attacker to claim the grand prize instead of the rightful winner.

LooksRare YOLO

High
Business logic

Winning agent id may be uninitialized when game is over, locking grand prize

The winning agent's identifier in the Infiltration contract is only set when agents are swapped, so if the first agent is never swapped its identifier remains zero. This makes the grand prize unclaimable because the ownership check always fails for a zero identifier.

LooksRare YOLO

High
Business logic

_killWoundedAgents

The `_killWoundedAgents` function only checks if an agent is currently wounded, not when it was wounded, so an agent that was healed and then wounded again in a later round can be killed by the old wound. An attacker could cause a user to spend LOOKS tokens to heal an agent, only for that agent to die later from the previous wound, losing the tokens and being forced out of the game.

LooksRare YOLO

High
Smart contracts

Index values selected in `_woundRequestFulfilled()` are not uniformly distributed

The wound-selection loop in the smart contract increments the random word by one when it lands on an already-wounded agent, so the next index is usually the adjacent one. This makes agents next to a wounded agent more likely to be wounded, which unfairly clusters wounds on addresses that own sequential agents.

LooksRare YOLO

Medium
Business logic

Wound agent can't invoke heal in the next round

A smart contract's heal function compared the current round with the round an agent was wounded using a threshold of two instead of one, so a wounded agent could not be healed in the immediately following round. An attacker could not gain anything directly, but affected players had to wait an extra round, lowering their chance of a successful heal.

LooksRare YOLO

Medium
Business logic

Agents with Healing Opportunity Will Be Terminated Directly if The `escape` Reduces activeAgents to the Number of `NUMBER_OF_SECONDARY_PRIZE_POOL_WINNERS` or Fewer

The heal function is disabled when the number of active agents is at or below the secondary prize pool winners threshold, while the escape function can reduce active agents below that threshold. An attacker can call escape before heal in a round, causing wounded agents to lose their chance to heal and be terminated.

LooksRare YOLO

Medium