Hunt prep
Before you test Biconomy - Smart Contract Wallet contest
What 40 disclosed reports say about Biconomy - Smart Contract Wallet contest: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 20 | 0 | – | – | $0 |
| Smart contracts lesson | 8 | 0 | – | – | $0 |
| Access control lesson | 7 | 0 | – | – | $0 |
| DoS lesson | 4 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Cross-Chain Signature Replay Attack
The getHash function should include the chain ID (and ideally the paymaster's address and a per-wallet nonce) in the hashed data to prevent cross-chain replay.
Disclosed
-
Methods used by EntryPoint has onlyOwner modifier
Remove the onlyOwner modifier from execute and executeBatch.
Disclosed
-
DoS of user operations and loss of user transaction fee due to insufficient gas value submission by malicious bundler
The Account Abstraction implementation should be updated to the latest version, which verifies that remaining gas is sufficient to cover the specified callGasLimit and verificationGasLimit.
Disclosed
-
SmartAccount.sol is intended to be upgradable but inherits from contracts that contain storage and no gaps
Add storage gaps to all inherited contracts that contain storage variables, and use upgradable variants of OpenZeppelin contracts where available.
Disclosed
-
FeeRefund.tokenGasPriceFactor is not included in signed transaction data allowing the submitter to steal funds
tokenGasPriceFactor should be added to the encoded transaction data so the owner's signature covers it.
Disclosed
-
Paymaster ETH can be drained with malicious sender
The paymaster should track used signatures and reject any replay, for example by storing a hash of each user operation and checking it has not been used before.
Disclosed
-
Theft of funds under relaying the transaction
The refund should be calculated from the sum of the lengths of the expected parameters, with the signature length bounded, rather than from the raw calldata length.
Disclosed
-
Arbitrary transactions possible due to insufficient signature validation
The protocol should validate that the signer is the owner before calling isValidSignature.
Disclosed
-
Griefing attacks on handleOps and multiSend logic
The report recommends removing redundant require-like checks from internal functions called by handleOps and adding non-atomic execution logic to multiSend, though the project acknowledged the issue and disputed the multiSend change.
Disclosed
-
Transaction can fail due to batchId collision
The fix should add a requirement in execTransaction that batchId is not 0.
Disclosed
-
Attacker can gain control of counterfactual wallet
Include the entrypoint address as part of the salt used to compute the counterfactual wallet address, and ensure the same entrypoint is used during deployment.
Disclosed
-
Destruction of the SmartAccount implementation
The deploy script should initialise the implementation, or the contract should include a constructor that sets the owner to a non-zero address to prevent initialisation.
Disclosed
-
Wrong formula when add fee incentivePool can lead to loss of funds.
The code should be changed to add the divided fee to the existing pool balance, not divide the whole sum.
Disclosed
-
wrong condition checking in price calculation
The condition should check totalReserve instead of totalSharesMinted, and the fix was confirmed by the project.
Disclosed
-
Liquidity providers unable to remove liquidity when the pool is in deficit state
The report offers no concrete fix, saying the decoupling of current and provided liquidity needs more thought so redemption can reflect actual available liquidity.
Disclosed