QUADRIGA INITIATIVE
CRYPTO WATCHDOG & FRAUD RECOVERY PLATFORM
A COMMUNITY-BASED, NOT-FOR-PROFIT
$100 000 000 USD
MAY 2019
GLOBAL
MAKERDAO
DESCRIPTION OF EVENTS

"The Maker Protocol, also known as the Multi-Collateral Dai (MCD) system, allows users to generate Dai by leveraging collateral assets approved by “Maker Governance.” Maker Governance is the community organized and operated process of managing the various aspects of the Maker Protocol. Dai is a decentralized, unbiased, collateral-backed cryptocurrency soft-pegged to the US Dollar. Resistant to hyperinflation due to its low volatility, Dai offers economic freedom and opportunity to anyone, anywhere."
"MakerDAO is known as the creator of dai (DAI), the decentralized stablecoin currently beloved by yield farmers. DAI is created with debt. Users put ETH or other crypto-assets up as collateral on the Maker platform to then withdraw a portion of the value of those assets in the form of brand-new DAI." "To get back their collateral, users must repay the DAI they borrowed plus whatever interest the loan has accrued (in MakerDAO parlance this is the “stability fee,” but it’s just a variable interest rate). MakerDAO enforces the DAI price by liquidating collateral if its value falls below the minimum threshold to maintain proper collateralization. For ETH, that’s 150%, but most users put in a lot more ETH than the minimum." "If the collateral value goes below a certain threshold, the loan is marked as undercollateralized, and liquidators can participate in an auction to liquidate the loan for a 13% reward."
"[T]he Decentralized Autonomous Organization (DAO) behind the DAI stablecoin, announced a critical security update to its governance contract in a Reddit thread published on May 6." "In partnership with Coinbase and Zeppelin, the Maker Foundation has been participating in a second round of audits of the Maker Voting Contract. During this process, we discovered the need to make a critical update."
"[T]he issue could allow someone to delete votes from the contract and freeze new participants out of the contract." "The crux of the issue rests on the fact that users can vote, through the vote(bytes32) function, for hashes that have not yet been etched. Normally, the addWeight and subWeight functions are balanced in the sense that approvals are either new, supported by freshly locked tokens, or taken from other proposals when a vote is changed. When a vote is cast for a hash not yet etched, however, the addWeight function will find no addresses associated with the hash, and thus no approvals will be added to the system, causing an imbalance in the system that an attacker can use maliciously."
"The MKR that is still deposited in the old contract is at risk of getting frozen if someone exploits the vulnerability. Due to the nature of the exploit however, the attacker would have to burn their own MKR to do this." "While the announcement claims that the tokens of users who have staked MKR tokens in the contract are not in danger, it also advises users to move them. Still, no action is required from users who are not in control of one of the ~190 addresses who have staked MKR in the current voting contract." "If we find MKR that has been frozen through the exploit, Maker has a contingency plan to reimburse the victim(s). More details about this will be released should we observe the exploit being used."
"A website with instructions has been created to help users with staked tokens move them out of the old voting smart contract, and chat assistance is offered to those who still find themselves confused about how to proceed." "The instance of this contract deployed at address0x8e2a84d6ade1e7fffee039a35ef5f19f13057152 was the core component of MakerDAO’s governance system, and had over $100 million in locked assets." "We’re happy to note that, of the original 138K MKR held in the old voting contract, only 2.4K MKR remain to be migrated."
"Per the announcement, during the second round of security audits part of the DAO’s partnership with crypto exchange Coinbase and smart contract security startup Zeppelin, a critical vulnerability had been discovered in the governance smart contract. Zeppelin also released an independent critical vulnerability notice."
"The verified source code of the new voting contract has now been added to Etherscan where the community can validate it. This code has been audited by our friends at Zeppelin who discovered the original vulnerability. A second, independent, audit on the new voting contract was conducted by PeckShield, further confirming that the deployed fix mitigates the vulnerability." "We would like to thank both Coinbase and Zeppelin for their strong commitment to due diligence and responsible disclosure as they worked with us to mitigate this issue."
The MakerDAO smart contract, which had over $100m in assets, was at risk of being frozen if a malicious attacker wished to also sacrifice their own MKR to perform the attack.
Were this to have happened, there could have been a significant loss to the MKR holders. However, it was detected and a mitigation plan was put in place before anything was frozen.
HOW COULD THIS HAVE BEEN PREVENTED?
There were no user funds lost in this case.
In order to prevent the possibility of freezing funds, redundant signatures can be available in a multi-signature wallet. Complex smart contracts introduce the possibility not just of assets being taken but also of them being frozen and rendered inaccessible.
List of Ethereum Smart Contracts Post-Mortems - Security - OpenZeppelin Community (Jun 23)
[NOTICE] Critical Update to Governance Voting Contract : MakerDAO (Jun 23)
Technical Description of Critical Vulnerability in MakerDAO Governance – OpenZeppelin blog (Jun 23)
DAO Behind DAI Stablecoin MakerDAO Announces Critical Vulnerability in Voting Contract (Jul 31)
MakerDAO — Cantrillion (Jul 31)
Mempool Manipulation Enabled Theft of $8M in MakerDAO Collateral on Black Thursday: Report - CoinDesk (Jul 27)
Millions Lost: The Top 19 DeFi Cryptocurrency Hacks of 2020 | Crypto Briefing (May 22)
DAO Behind DAI Stablecoin MakerDAO Announces Critical Vulnerability in Voting Contract (Jul 31)
Maker discloses "critical update" to its governance voting contract (Jul 31)
Maker price today, MKR live marketcap, chart, and info | CoinMarketCap (Jul 31)
Technical Description of Critical Vulnerability in MakerDAO Governance – OpenZeppelin blog (Jul 31)
