Cyber Risks · Trail of Bits Blog

Billion times emptiness

Summary: Trail of Bits found that the Ethereum ABI specification permits zero-sized types, letting a payload of 8 on-disk bytes deserialize to 2^32 elements and exhaust memory in eth_abi (Python), ethabi (Rust), alloy-rs 0.4.2, and ethereumjs-abi 0.6.8. At the time of writing the bug was fixed only in the Python library, with the other libraries opting for full disclosure through GitHub issues.

What you should know: Any off-chain application that decodes untrusted ABI declarations - Etherscan is named as an example - can be hung or driven out of memory by a payload smaller than a single word, and the specification that allowed it remains unfixed in three of the four affected libraries.

Read the original at Trail of Bits Blog ↗