Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Valid

Anyone can call the `goOnStageOrBattle` with a random `_tokenId`

Summary

There is no check implemented for the owner of the challenger NFT.

Vulnerability Details

Anyone can call the goOnStageOrBattle function as a challenger and input a random _tokenId and when the challenger wins it will take the defenders tokens.

Impact

High as tokens can be stolen from the defender.

Tools Used

Manual review.

Recommendations

Implement a check for the owner of the NFT.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

Challenger can use any nft to battle - not necessarily theirs

Support

FAQs

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