Ambire Wallet - Mitigation Review

A web3 wallet that makes crypto self-custody easy and secure for everyone.

  • Start date16 Jun 2023
  • End date21 Jun 2023
  • Total awards$6,500 USDC
  • Duration5 days

Ambire Wallet - Mitigation Review details

Important note

Each warden must submit a mitigation review for every High and Medium finding from the parent audit. Incomplete mitigation reviews will not be eligible for awards.

Findings being mitigated

Mitigations of all High and Medium issues will be considered in-scope and listed here.

Overview of changes

We fixed 4 of the vulnerabilities after they were found, and we chose not to mitigate one.

Mitigations to be reviewed

The mitigations are already committed in this branch and they are in individual commits.

URLMitigation ofPurpose
fca50cd45478ef1ab57ba21bf7e1ccd15b310a05M-02Check gasleft to prevent this attack
1c0b06fbbbdd9aac1285d4fc4949f5b84f923238M-03Increment the nonce to prevent replaying recovery transactions
cf9c8b115a60df384ae8986a368bb65c56cd7e12M-04Downgrade Solidity to allow deploying on pre-Shanghai networks
3a0a4d9b24c96d816fb5819efe1e5f4dc57d7835M-05To mitigate this and avoid confusion, we removed the constructor as it's not used anyway

Out of Scope

M-01: Fallback handlers can trick users into calling functions of the AmbireAccount contract

This is worth pointing out, but the likelihood of an attack is very low, it needs the user to consciously add a malicious fallback handler, and the UI needs to be updated to attack the user as well. If we go into the possibility of malicious UI updates, then we open a whole new can of worms which is completely out of scope - in other words, we will have much bigger issues in this case, so this is completely irrelevant.

Furthermore, there's no applicable mitigation.