Rock Paper Scissors

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

Unbounded Array Growth

Description: The games mapping can grow indefinitely as new games are createdThe games mapping can grow indefinitely as new games are created. The location is mapping(uint256 => Game) public games;

Impact: Potential for storage bloat and increased gas costs over time

Proof of Concept:

// Attacker creates many games
for (uint i = 0; i < 1000; i++) {
game.createGameWithEth{value: 0.01 ether}(3, 5 minutes);
}

Recommended Mitigation: Implement a maximum number of concurrent games or a game cleanup mechanism

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.