Rock Paper Scissors

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

[L-100,128] check about _timeoutInterval cause Denial‑of‑Service (Availability)

Summary
In the current scenario, the "require" statement only verifies that the time is not less than 5 minutes, but if the user tries to do some funny things like add time to our interval like 10 days, 100 days, and 100 years, then we have to tackle that also.

Vulnerability Details

A user can choose a very large _timeoutInterval (e.g. 100 years), Then nobody else can progress or finish that game until the timeout elapses. Funds remain locked in the contract, and the game is effectively frozen.

Recommendations
There should also be a max limit of time interval like && _timeoutInterval <= 30 minutes

Updates

Appeal created

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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