Hunt prep
Before you test LooksRare YOLO
What 11 disclosed reports say about LooksRare YOLO: 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 |
| DoS lesson | 2 | 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.
-
Rounds can not be immediately drawn after fulfillRandomWords due to VRF contracts reentrancy guard
The contract should not immediately draw the next round if it is winnable; instead, anyone can call drawWinner when conditions are met, or an additional check should be added to conclude a round if it is drawable immediately.
Disclosed
-
User can get free entries if the price of any whitelisted ERC20 token is greater than the round's `valuePerEntry`
Whitelist tokens using both the token address and the token type (ERC20/ERC721).
Disclosed
-
Users can deposit "0" ether to any round
The function should be fixed by adding a check that reverts if depositAmount is zero.
Disclosed
-
fulfillRandomWords() could revert under certain circumstances
The value of AGENTS_TO_WOUND_PER_ROUND_IN_BASIS_POINTS should be limited to a small enough number to ensure the gas limit is not reached, or randomness should be stored and follow-on actions taken in separate calls.
Disclosed
-
Attacker can steal reward of actual winner by force ending the game
The game should start a new round before the real end to clear all wounded agents and reorder IDs.
Disclosed
-
Winning agent id may be uninitialized when game is over, locking grand prize
The contract was fixed by treating a zero agentId as agent 1 in claimGrandPrize, as shown in the linked pull requests.
Disclosed
-
_killWoundedAgents
The fix should check that the agent's `woundedAt` timestamp matches the round being processed, so only agents wounded in that specific round are killed.
Disclosed
-
Index values selected in `_woundRequestFulfilled()` are not uniformly distributed
The retry branch should be removed and a new random word drawn at the end of every loop iteration; the text links a pull request and a reviewer says the fix looks good.
Disclosed
-
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 escape function should be called after the heal function in every round to ensure wounded agents can heal when enough active agents are present.
Disclosed