code-423n4 / 2024-02-renft-mitigation-findings

0 stars 0 forks source link

H-02 MitigationConfirmed #3

Open c4-bot-5 opened 6 months ago

c4-bot-5 commented 6 months ago

Lines of code

Vulnerability details

C4 Issue

H-02: An attacker is able to hijack any ERC721 / ERC1155 he borrows because guard is missing validation on the address supplied to function call setFallbackHandler()

Comments

Safe owners were able to set a fallback handler for their wallets. With that they were able to call any function on any contract as it bypassed the Guard checks. They could for example transfer NFTs out of the wallet.

Mitigation

PR-4: setFallbackHandler() was disabled

Conclusions

Successful Mitigation

c4-judge commented 6 months ago

gzeon-c4 marked the issue as satisfactory