First Flight #12: Kitty Connect

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

[H1] Anyone can mint tokens on the destination chain.

Summary

The function bridgeNftWithData allows everyone to mint tokens on the destination chain even if they don't have an NFT on the source chain.

Vulnerability Details

The function bridgeNftWithData(uint64 _destinationChainSelector, address _receiver, bytes memory _data) is not protected, so everyone can call it directly on the destination chain on contract kittyBridge, this function by providing the _destinationChainSelector and receiver address.(KittyBridge address on destination chain)

Impact

Attackers can mint new NFTs on the destination chain even if they don't have NFT on the source chain.

Tools Used

manual

Recommendations

Add a check in the smart contract to check if the function is called by the router of the destination chain.

Updates

Lead Judging Commences

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

`bridgeNftWithData` misses access control

Support

FAQs

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