When a round ends and the next round is immediately drawable, the contract tries to request randomness from Chainlink VRF while still inside the VRF callback, which is protected by a reentrancy guard. This causes the callback to revert, so the round cannot be completed and must be cancelled by governance.
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.
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.
The YoloV2 contract enforces a maximum number of deposits per round, but this limit can be exceeded when the protocol is paused during the random number generation for a round. An attacker could deposit more than the allowed maximum into a round, breaking the intended invariant.
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.
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.
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.
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.
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.
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.
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.
LY
LooksRare YOLO
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.