$150,000 Evmos Vulnerability Through Reading Documentation
The Evmos blockchain allowed funds to be sent to a module account that should be blocklisted from receiving funds, breaking a blockchain invariant. This halted block production, stopping the entire chain and all dApps built on it.
Published on medium.com
Life as a Web3 security researcher often consists of deep diving into technical subjects that can be difficult to grasp. Because of this, we sometimes expect a critical bug to be something complex and hard to find when, in reality, it can be quite the opposite.
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
Likely the bank module did not enforce its blocklist of module account addresses on direct transfers, so a transfer could break a state invariant.
Impact
The chain halted and all dApps built on it stopped working; the text says the bug has since been fixed.
What the attacker needed
Local Evmos chain running; ability to send transactions
The fix
The Evmos team fixed the bug, though the text does not describe the change.
How it was found
- Clone the Evmos blockchain repository.
- Start the local Evmos chain using the provided script and the start command with invariant checking enabled.
- In another terminal, list accounts to find the distribution module account address and the starting account address.
- Send a small amount of funds to the distribution module account using the bank send command.
- Observe the consensus failure error and that no further blocks are produced.
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.
A blockchain is a shared ledger run by many computers that must all agree on its state. A module account is a special internal account used by the blockchain's own code, and it should never receive normal payments. Here, a payment to such an account broke a rule the software relies on, so the chain stopped producing new blocks.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.