Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

People can call `Dussehra::enterPeopleWhoLikeRam` after the event end.

Description

Dussehra::enterPeopleWhoLikeRam do not check if the event is ended or not. Thus, any users can mint a RamNFT after the end of the event.

@> function enterPeopleWhoLikeRam() public payable {
if (msg.value != entranceFee) {
revert Dussehra__NotEqualToEntranceFee();
}
if (peopleLikeRam[msg.sender] == true) {
revert Dussehra__AlreadyPresent();
}
peopleLikeRam[msg.sender] = true;
WantToBeLikeRam.push(msg.sender);
ramNFT.mintRamNFT(msg.sender);
emit PeopleWhoLikeRamIsEntered(msg.sender);
}

Risk

Likelyhood: High

  • Anyone can mint an NFT after the event end.

Impact: Low

  • Since the token has a value only during the event, it would not be a great benefit to sell them.

Recommended Mitigation

Check if the event is ended before minting a new token.

Updates

Lead Judging Commences

bube Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

Invalid - enter people after event or after Ram is selected

It is the user's responsibility to check the date of the event.

Support

FAQs

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