Ethereum
$2,379.58 3.91%
ETH · 208w

Augur REP Token Critical Vulnerability Disclosure – Zeppelin Solutions

Augur REP Token Critical Vulnerability Disclosure

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.

A few days later, we found one of those critical vulnerabilities affected the production REP token. In a nutshell, an out-of-bounds write on the token’s reputation array allowed an attacker to modify the creation timestamp, making it believe the crowdsale was still ongoing, and disabling all token transfers. This critical severity vulnerability, if exploited, could have halted the whole REP economy, worth over $200 million.

The Complete Story

We contacted the Augur team on July 13th 2017 to privately notify them about the issue. It is important to note that the critical vulnerability was in the Serpent compiler’s code, not in Augur’s code. We proposed a mitigation plan to reduce damages to the Augur project, which was accepted by their team. It included:

1- Writing a new REP smart contract in Solidity, based on OpenZeppelin’s reusable components.

2- Auditing the new REP token contract.

3- Disclosing to exchanges and wallet providers on July 24th 2017, 25 hours before public disclosure.

4- Deploying the new REP token contract to the Ethereum blockchain.

5- Freezing the old REP token (by exploiting the vulnerability ourselves) on July 25th 2017.

6- Migrating the balances of the frozen REP token into the new REP token.

The new token was developed by the Augur team using OpenZeppelin, and audited by the Zeppelin Solutions team. Deployment, migration and related scripts were also audited by the Zeppelin Solutions team.

REP Vulnerability Explained

To understand how the old REP token could be frozen, we first need to understand the Serpent critical severity vulnerabilities used in the attack.

First, Serpent contracts can overwrite s...

Continue on blog.zeppelin.solutions
Recent news