First Flight #21: KittyFi

First Flight #21
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

[M-1] Tampering user KittyCoin balance.

Summary

The KittyCoin::burnKittyCoin() function allows to reduce the kittyCoinMeownted balance on-behalf of an account different that who is calling, allowing the on-behalf account keep owning the KittyCoins and the caller keep having the kittyCoinMeownted balance.

Vulnerability Details

The KittyCoin::burnKittyCoin() function allows to reduce the kittyCoinMeownted balance on-behalf of an account different that who is calling, allowing the on-behalf account keep owning the KittyCoins and the caller keep having the kittyCoinMeownted balance.

Therefore the on-behalf user can use their KittyCoins outside of the KittyPool contract context and the caller user will be able to take advantage of the kittyCoinMeownted inside of the contract.

Tools Used

Manual review

Recommendations

Consider to remove the option of burn KittyCoin on-behalf of another account.

Updates

Lead Judging Commences

shikhar229169 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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