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

DOS : The mint function of HorseStore.huff never increments the horse IDs.

Summary

It is not possible to mint more than on Horse with HorseStore.huff

Vulnerability Details

The mint function of the HorseStore never increments the horse IDs, once the first Horse with Id = 0 is minted, it is impossible to mint another Horse.

Impact

The contract is not usable since there will only be one horse that everyone can feed

Tools Used

Recommendations

Modify the contract #define macro _MINT() = takes (2) returns (0) , once the token is mint ,in crement by 1 TOTAL_SUPPLY

Updates

Lead Judging Commences

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

Failure to increment total supply on mint

Support

FAQs

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