Augur REP Token Critical Vulnerability Disclosure
An out-of-bounds write in the Serpent compiler allowed an attacker to modify the REP token's creation timestamp by sending a crafted transfer call, making the contract believe the crowdsale was still ongoing and disabling all token transfers. This could have halted the entire REP economy, worth over $200 million.
blog.zeppelin.solutions
Published on blog.zeppelin.solutions
Two weeks ago, we finished our audit of the Serpent compiler and sent it privately to the Augur team. We found the Serpent project to be of very low quality, with 8 critical severity vulnerabilities.
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 Serpent compiler did not perform bounds checking on array accesses and did not enforce types, allowing a user-controlled parameter to index beyond the reputation array and overwrite other storage variables.
Impact
If exploited, this vulnerability could have halted the whole REP economy, worth over $200 million, by disabling all token transfers.
What the attacker needed
A small amount of REP tokens; ability to send a transaction to the REP contract
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 smart contract is a program on a blockchain that holds and moves digital tokens. The REP token's code was written in a language called Serpent, which had a bug: it did not check if a list index was too large. By sending a special transaction with a very large receiver address, an attacker could overwrite another part of the contract's memory and change when the token sale ended, effectively freezing all transfers.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.