Skip to content

Code4rena

Ambire Wallet - Invitational

Every publicly disclosed report for Ambire Wallet - Invitational and what kind of bugs they were.

disclosed reports
9
most reported class
Access control
bug classes found
4
first disclosure
2021
Find Ambire Wallet - Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Ambire Wallet - Invitational chose to make public.

Smart contracts

Fallback handlers can trick users into calling functions of the AmbireAccount contract

A malicious fallback handler can contain a function whose selector matches a function in the base AmbireAccount contract, so calling the innocent-looking fallback function actually triggers the base function, such as setAddrPrivilege, allowing the attacker to gain control of the wallet.

Ambire Wallet - Invitational

Medium
Misconfiguration

Project may fail to be deployed to chains not compatible with Shanghai hardfork

The contracts were compiled with Solidity 0.8.20, which emits the PUSH0 opcode introduced in the Shanghai hard fork. This could make the bytecode incompatible with supported chains that do not yet support Shanghai, and differences in bytecode between compiler versions could break deterministic contract addresses and counterfactuality.

Ambire Wallet - Invitational

Medium
Access control

AmbireAccount implementation can be destroyed by privileges

The AmbireAccount implementation contract has a constructor that sets privileges, allowing a privileged address to destroy the implementation via a fallback handler with selfdestruct. This would brick all proxy wallets that rely on that implementation, making them inaccessible and potentially causing loss of funds.

Ambire Wallet - Invitational

Medium
Business logic

Recovery transaction can be replayed after a cancellation

The recovery transaction could be replayed after a cancellation because the nonce was not incremented during cancellation. An attacker could re-initiate a cancelled recovery by replaying the original signed transaction.

Ambire Wallet - Invitational

Medium
Business logic

Attacker can force the failure of transactions that use tryCatch

The tryCatch function in the AmbireAccount contract forwards all remaining gas to an external call, so a malicious relayer can choose a gas limit that makes the inner call run out of gas while the outer transaction still succeeds. This forces the failure of transactions that were meant to tolerate inner call failures, and the nonce is still incremented.

Ambire Wallet - Invitational

Medium
Smart contracts

Signature replay attacks for different identities (nonce on wrong party)

The signature hash used in QuickAccManager.send did not include the identity address, and nonces were tracked per identity rather than per signer. An attacker could replay a valid transaction on a second identity that shares the same QuickAccount, causing duplicate payments or other unauthorised actions.

Ambire Wallet - Invitational

High
Access control

Prevent execution with invalid signatures

The Identity contract allowed a zero address to be added as a privileged signer during construction. If an invalid signature was used, the signature recovery function returned the zero address, which was then treated as privileged, allowing anyone to execute arbitrary transactions.

Ambire Wallet - Invitational

High
Access control

QuickAccManager Smart Contract signature verification can be exploited

The QuickAccManager smart contract's signature verification could be bypassed because it trusted an attacker-controlled identity contract address in the signature. An attacker could craft a malicious signature that made the contract believe a valid signature was provided, allowing arbitrary transactions to be executed and funds stolen.

Ambire Wallet - Invitational

High