First Flight #12: Kitty Connect

First Flight #12: Kitty Connect
Beginner FriendlyFoundryNFTGameFi
100 EXP
View results
Submission Details
Severity: high
Invalid

`KittyConnect::i_kittyConnectOwner` should not be immutable, allowing transfer of ownership

Summary

To enable transferring ownership in case of the owner wallet is compromised, the KittyConnect::i_kittyConnectOwner variable should not be immutable. Furthermore, the project should use OpenZeppelin's Ownable contract to use a battle tested transfer ownership functionality.

Vulnerability Details

Since KittyConnect::i_kittyConnectOwner is immutable it cannot be changed. If this address is compromised, there is no recovery plans that will successfully transfer the ownership to another not compromised address.

Impact

If the owner wallet is compromised, the attacker will be able to add any shop as partner and may add non-compliant and not trusted shops.

Tools Used

Manual review

Recommendations

The project should use OpenZeppelin's Ownable contract to use a battle tested transfer ownership functionality.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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