create account

Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains by ivanli

View this thread on: hive.blogpeakd.comecency.com
· @ivanli ·
$12.94
Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains
https://www.youtube.com/watch?v=5JrdR6SRlWE

How did the DAO hack happen and what exactly did the programmers of the DAO do wrong? In this video we're going to learn that by coding our own vulnerable fundraiser and draining its funds with a malicious wallet that we will write as well.

This video is for educational purposes only and is made for Solidity developers who would like to understand how these hacks happen in order to build better and more secure smart contracts.

The DAO vulnerability has to do with how one can recursively call functions when a send operation is executed. In this video we're not using ether but only sending "numbers", however the principle still holds and the attack can be understood by watching this video.

I think it's extremely important for all Solidity developers to udnerstand these Ethereum hacks and be aware how their smart contracts can be hacked if one if not careful. 

JOIN SLACK COMMUNITY
http://slack-invite-ivan-on-tech.herokuapp.com

https://steemit.com/@ivanli

Thanks for watching guys, if you'd like to support me and donate to the channel, here are my addresses:

💎 ETH 0x27F80bc928aB65B499514D9a429249F55849fc75
💎 LTC LWzA2kd6PB3niQcegAmJbTTpE5ovf812Mj
💎 BTC 1QLBCmPsrDS8YHe5AApPyFsHFnvPsTenj4
💎 DASH XfX56mNDawvmxxWv3nF9Ev93W4MsmCbeXp

ESSENTIAL CRYPTO RESOURCES

♥ Recommended hardware wallet LEDGER NANO S https://www.ledgerwallet.com/r/4607
♥ Buy and sell cryptocurrencies here https://www.coinbase.com/join/529bab0ab08ded7080000019
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 11 others
properties (23)
authorivanli
permlinkethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains
categoryblockchain
json_metadata{"tags":["blockchain","ethereum","bitcoin","cryptocurrencies"],"image":["https://img.youtube.com/vi/5JrdR6SRlWE/0.jpg"],"links":["https://www.youtube.com/watch?v=5JrdR6SRlWE","http://slack-invite-ivan-on-tech.herokuapp.com","https://steemit.com/@ivanli","https://www.ledgerwallet.com/r/4607","https://www.coinbase.com/join/529bab0ab08ded7080000019"],"app":"steemit/0.1","format":"markdown"}
created2017-07-25 18:05:06
last_update2017-07-25 18:05:06
depth0
children10
last_payout2017-08-01 18:05:06
cashout_time1969-12-31 23:59:59
total_payout_value11.272 HBD
curator_payout_value1.668 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,495
author_reputation37,421,541,932,318
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,697,389
net_rshares3,569,626,342,627
author_curate_reward""
vote details (75)
@adrai ·
$0.03
You're great! Thanks for this comprehensive explanation...
👍  ,
properties (23)
authoradrai
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170725t180852555z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-25 18:08:51
last_update2017-07-25 18:08:51
depth1
children0
last_payout2017-08-01 18:08:51
cashout_time1969-12-31 23:59:59
total_payout_value0.026 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation99,880,914,734
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,697,779
net_rshares9,179,209,277
author_curate_reward""
vote details (2)
@enzan ·
$0.03
Hi @ivanli, I'm new here on Steemit (just joined today), but I've been following your YouTube channel for a few weeks now, and wanted to thank you for the good work you are doing to educate the public on blockchain technology and cryptocurrencies. 

I work in the software development industry and have found your videos to be a go-to resource for a developer's point of view on this new technology.

Your efforts are very much appreciated, please keep it up!
👍  
properties (23)
authorenzan
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170726t191047047z
categoryblockchain
json_metadata{"tags":["blockchain"],"users":["ivanli"],"app":"steemit/0.1"}
created2017-07-26 19:10:45
last_update2017-07-26 19:10:45
depth1
children0
last_payout2017-08-02 19:10:45
cashout_time1969-12-31 23:59:59
total_payout_value0.019 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length459
author_reputation3,253,316,467
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,828,921
net_rshares7,760,760,906
author_curate_reward""
vote details (1)
@jeremycrow ·
$0.84
Great post! I found you on here from your video serious on EOS. Followed you and looking forward to more of these informative cryptocurrency articles and videos.
👍  , , , ,
properties (23)
authorjeremycrow
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170726t030509644z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-26 03:05:09
last_update2017-07-26 03:05:09
depth1
children1
last_payout2017-08-02 03:05:09
cashout_time1969-12-31 23:59:59
total_payout_value0.646 HBD
curator_payout_value0.190 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length161
author_reputation2,420,076,519,172
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,743,949
net_rshares232,018,091,221
author_curate_reward""
vote details (5)
@minnowbooster ·
@minnowbooster upvoted this post!
![@jeremycrow got you a $0.86 @minnowbooster upgoat, nice!](http://minnowshares.net/upgoat/?user=jeremycrow&receiver=jeremycrow&value=0.86&hash=672)
*@jeremycrow got you a $0.86 @minnowbooster upgoat, nice! (Image: pixabay.com)*
---
[Want a boost? Click here to read more!](https://steemit.com/minnowbooster/@minnowbooster/6rt2mn-introducing-minnowbooster-beta)
properties (22)
authorminnowbooster
permlinkcomment-1501458015094
categoryblockchain
json_metadata""
created2017-07-30 23:40:15
last_update2017-07-30 23:40:15
depth2
children0
last_payout2017-08-06 23:40:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length361
author_reputation230,546,282,483,083
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,265,548
net_rshares0
@kkomaz ·
$0.03
solid per usual!
👍  ,
properties (23)
authorkkomaz
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170726t005521054z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-26 00:55:21
last_update2017-07-26 00:55:21
depth1
children0
last_payout2017-08-02 00:55:21
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length16
author_reputation15,393,882,786
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,732,934
net_rshares8,103,777,963
author_curate_reward""
vote details (2)
@peterokwara ·
$0.03
Cheesus! it was hacked so easily with  like 4 lines of code!
👍  
properties (23)
authorpeterokwara
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170726t121800980z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-26 12:18:12
last_update2017-07-26 12:18:12
depth1
children0
last_payout2017-08-02 12:18:12
cashout_time1969-12-31 23:59:59
total_payout_value0.020 HBD
curator_payout_value0.006 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length60
author_reputation10,298,335,755
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,786,361
net_rshares7,932,269,435
author_curate_reward""
vote details (1)
@sanees ·
$0.04
good explanation. My own startup story
https://steemit.com/life/@sanees/my-startup-journey-part1
👍  ,
properties (23)
authorsanees
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170725t222525467z
categoryblockchain
json_metadata{"tags":["blockchain"],"links":["https://steemit.com/life/@sanees/my-startup-journey-part1"],"app":"steemit/0.1"}
created2017-07-25 22:25:24
last_update2017-07-25 22:25:24
depth1
children0
last_payout2017-08-01 22:25:24
cashout_time1969-12-31 23:59:59
total_payout_value0.034 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length96
author_reputation2,019,131,877,450
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,720,697
net_rshares12,275,893,454
author_curate_reward""
vote details (2)
@vizualsamuri ·
$0.16
Hey! @ivanli we've featured you and a few others on the latest episode of "Why This Crypto"! ^_^ really hope you enjoy Ivan!

![Webp.net-gifmaker (2).gif](https://steemitimages.com/DQmS3QKXsiddbtdvCJP5twKs2F9EV4YZEXxQvwS4UdK9eiK/Webp.net-gifmaker%20(2).gif)

https://steemit.com/eos/@vizualsamuri/eos-why-this-crypto-ep-5-2017728t13204320z
👍  ,
properties (23)
authorvizualsamuri
permlinkre-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170728t232646491z
categoryblockchain
json_metadata{"tags":["blockchain"],"users":["ivanli"],"image":["https://steemitimages.com/DQmS3QKXsiddbtdvCJP5twKs2F9EV4YZEXxQvwS4UdK9eiK/Webp.net-gifmaker%20(2).gif"],"links":["https://steemit.com/eos/@vizualsamuri/eos-why-this-crypto-ep-5-2017728t13204320z"],"app":"steemit/0.1"}
created2017-07-28 23:26:45
last_update2017-07-28 23:26:45
depth1
children2
last_payout2017-08-04 23:26:45
cashout_time1969-12-31 23:59:59
total_payout_value0.158 HBD
curator_payout_value0.002 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length339
author_reputation4,643,310,820,610
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,067,145
net_rshares44,019,410,933
author_curate_reward""
vote details (2)
@ivanli ·
wow thanks man :)
👍  
properties (23)
authorivanli
permlinkre-vizualsamuri-re-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170729t150424223z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-29 15:04:24
last_update2017-07-29 15:04:24
depth2
children1
last_payout2017-08-05 15:04:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation37,421,541,932,318
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,125,864
net_rshares0
author_curate_reward""
vote details (1)
@vizualsamuri ·
For sure! :)
properties (22)
authorvizualsamuri
permlinkre-ivanli-re-vizualsamuri-re-ivanli-ethereum-usd53m-dao-hack-bad-code-explained-part-1-programmer-explains-20170729t180535268z
categoryblockchain
json_metadata{"tags":["blockchain"],"app":"steemit/0.1"}
created2017-07-29 18:05:36
last_update2017-07-29 18:05:36
depth3
children0
last_payout2017-08-05 18:05:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length12
author_reputation4,643,310,820,610
root_title"Ethereum $53M DAO HACK - Bad Code Explained Part 1 - Programmer explains"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,140,563
net_rshares0