Doesn’t Follow ERC1271 Standard
The smart contract wallet's signature validation function does not follow the ERC-1271 standard: it uses the wrong magic value and function signature. As a result, signature verifier contracts fall back and return an unexpected value, causing execTransaction to always revert.
Submitted by Atarpara, also found by gz627 and zapaz
As Per EIP-1271 standard ERC1271_MAGIC_VAULE should be 0x1626ba7e instead of 0x20c13b0b and function name should be isValidSignature(bytes32,bytes) instead of isValidSignature(bytes,bytes). Due to this, signature verifier contract go fallback function and return unexpected value and never return ERC1271_MAGIC_VALUE and always revert execTransaction function.
Proof of Concept
contracts/smart-contract-wallet/interfaces/ISignatureValidator.sol#L6 contracts/smart-contract-wallet/interfaces/ISignatureValidator.sol#L19 contracts/smart-contract-wallet/SmartAccount.sol#L342
Recommended Mitigation Steps
Follow EIP-1271 standard.
livingrockrises (Biconomy) confirmed
Selected as best as this issue also mentions the wrong function signature.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The contract implements a non-standard signature validation interface with an incorrect magic value and function signature.
Impact
Signature verification fails, causing execTransaction to always revert, which could prevent the wallet from executing valid transactions.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
ERC-1271 is a rule that tells wallets how to check signatures made by contracts. This wallet used the wrong code and function name, so other contracts could not verify signatures correctly, and transactions failed.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.