TwentyOne

First Flight #29
Beginner FriendlyGameFiFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Without checking the game progress state, it is impossible to determine the correctness of the function call

Summary

Because this contract does not have a representation of the game state, functions in the contract can be called freely whether the game has ended or has not started.

Vulnerability Details

Impact

Functions in the contract can be called whether the game has started or already ended, which would lead to players being unable to determine the game progress.

Tools Used

manual inspection

Recommendations

Add an enum type to track the game state.

enum GameState { NotStarted, InProgress, Ended }
GameState public gameState;
Updates

Lead Judging Commences

inallhonesty Lead Judge 11 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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