Hyperlane
The report describes a bug in the OwnableMulticall contract's proxyCalls function, where the assembly revert call passes the returnData pointer instead of its length as the second argument. This causes the contract to revert with incorrect data whenever a low-level call fails.
github.com
Published on github.com
Raw
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The assembly revert builtin was given the memory pointer to the return data instead of the length of that data, so the wrong number of bytes is reverted with.
What the attacker needed
Caller is the contract owner
The fix
The second argument to the assembly revert should be the size of the return data, such as the memory load of the length or the return data size.
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 write-up has not been written yet. The Original tab links to the source.
Smart contracts can make calls to other contracts. When such a call fails, the contract wants to pass back the error message it received. Here the code told the system to read the wrong amount of data, so the error message returned is garbled or wrong.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.