Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isValidSignature returns success for non registered contracts #31

Open
howydev opened this issue Oct 25, 2024 · 2 comments
Open

isValidSignature returns success for non registered contracts #31

howydev opened this issue Oct 25, 2024 · 2 comments

Comments

@howydev
Copy link
Collaborator

howydev commented Oct 25, 2024

If any smart contract has not installed the Multisig plugin, it would have a signature threshold of 0, and passing an empty signature into the isValidSignature function would cause it to return success

Considering applications that support ERC1271 - anyone is able to transfer USDC tokens out of the multisig plugin with an empty signature with USDC v2.2, as it supports ERC2612 permit with ERC1271. Note that this is limited to tokens that support 2612 with 1271, and permit2 does not work since it requires an underlying token approval from the multisig plugin to the permit2 contract that cannot happen

Since tokens are not transferred to the multisig plugin during normal operation, it functions like a "public sweep". Nonetheless, this is unintended and will be addressed in multisig plugin v2

Credit: @unknownfeature

@TheMarvelFan
Copy link

Hi @howydev ,

Is anyone working on this issue?

@howydev
Copy link
Collaborator Author

howydev commented Oct 28, 2024

hey @TheMarvelFan! We'll want to audit the change before deploying it into production. Since this is only a low risk issue, we've opted to push this update till the v2 module instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants