sherlock-audit / 2024-06-boost-aa-wallet-judging

3 stars 1 forks source link

Albort - Insufficient Validation of Implementations #401

Open sherlock-admin4 opened 2 months ago

sherlock-admin4 commented 2 months ago

Albort

Medium

Insufficient Validation of Implementations

Summary

Vulnerability Detail

The onlyACloneables modifier only checks if the implementation supports the ACloneable interface via supportsInterface.

A malicious contract can falsely claim support for ACloneable by returning true in supportsInterface, even if it doesn't correctly implement the interface.

Impact

Users might unknowingly deploy clones of malicious contracts, leading to potential loss of funds or other security breaches.

Code Snippet

https://github.com/sherlock-audit/2024-06-boost-aa-wallet/blob/main/boost-protocol/packages/evm/contracts/BoostRegistry.sol#L70

Tool used

Manual Review

Recommendation

Implement additional checks within onlyACloneables to verify that the contract truly implements the expected functions.