The TempleGold::send
function allows users to bridge their tokens to the same address on another chain. The problem is that all users utilizing an account abstraction wallet will not be able to bridge their TempleGold tokens from one chain to another. This is because they can have different addresses across chains for the same account. Therefore, all the TempleGold tokens will be bridged to an incorrect address and lost forever.
Likelyhood: High
A lot of account abstraction user will be impacted.
This is highly likely because the website/dapp will build the parameters and there is no reason to ask for the receiver (_to
) since the protocol does not allow transfers to other addresses.
Impact: High
Loss of funds
Warn users in the UX and ask them twice if they are sure they own the account on the other chain.
Alternatively, check if msg.sender is a smart contract and revert.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.