Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Ethereum Smart Contract Development

You're reading from  Ethereum Smart Contract Development

Product type Book
Published in Feb 2018
Publisher Packt
ISBN-13 9781788473040
Pages 288 pages
Edition 1st Edition
Languages
Author (1):
Mayukh Mukhopadhyay Mayukh Mukhopadhyay
Profile icon Mayukh Mukhopadhyay

Table of Contents (18) Chapters

Title Page
Dedication
Packt Upsell
Contributors
Preface
Blockchain Basics Grokking Ethereum Hello World of Smart Contracts A Noob's Guide to DApps and DAO Deep-Diving into Smart Contracts Solidity in Depth Primer on Web3.js Developing a Cryptocurrency from Scratch Enterprise Use Cases BaaS and the Dark Web Market Advanced Topics and the Road Ahead Other Books You May Enjoy Index

The rise and fall of DAO


The original, vulnerable DAO had many complex contracts but the essence was the same as that of the simple DAO we created in the previous section. In May 2016, DAO was formed by a huge crowdsourcing of funds, where stakeholders bought Initial coin offers (ICO) worth more than 150 million USD. But in the next month, June 2016, a hacker (one of the users) exploited the vulnerability to siphon out around 50 million to their own wallet. This amount was later taken back by blockchain reorganization but led to the hard fork of ETH/ETC. Calling this a "hack" is technically a misnomer because there was no break-and-enter violation of the fundraiser. It just exploited a vulnerable line of code logic present in the DAOFundraiser contract by changing the wallet logic.

This is quite possible because wallets are normally separate modules and can have any custom logic and interface. Figure 4.10 represents the function block that is vulnerable to an exploit. Please note, we have...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}