Rock Paper Scissors

First Flight #38
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Unbounded Loop in Game Management

Description: The contract doesn't limit the number of active games, which could lead to unbounded loops when processing games which is found throughout the contract.

Impact: Could lead to denial of service or excessive gas costs.

Proof of Concept:

// Create thousands of games
for (uint i = 0; i < 10000; i++) {
game.createGameWithEth{value: 0.1 ether}(3, 5 minutes);
}
// Now any operation that needs to iterate through games will fail

Recommended Mitigation: Implement a maximum number of concurrent games and proper cleanup mechanisms

Updates

Appeal created

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Informational

Code suggestions or observations that do not pose a direct security risk.

Gas Optimization

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.