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

Unlimited staking

Summary

It is not possible to limit the maximum of 4 NFTs that can be pledged.

Vulnerability Details

The stake function of the Streets contract fails to retrieve the user's pledged quantity, thereby unable to restrict each user to pledge more than 4 NFTs, allowing users to pledge NFTs without limitations.

Impact

Users can bypass restrictions on pledging NFTs.

Tools Used

Manual audit

Recommendations

Add a mapping[address user => uint256 pledged quantity] to record the pledged quantity of each user, and check if the user's pledged quantity is greater than 4 in the stake function.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

Max 4 rappers staked limit not enforced

Support

FAQs

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