Hacking Smart Contracts
Hacking Smart Contracts
Summary
### The Post-DAO Smart Contract Security Paradigm At 00:00, Konstantinos Karagiannis opens by examining the watershed moment for blockchain security: the June 2016 exploit of The DAO, which resulted in the theft of 3.6 million Ether and forced a contentious hard fork of Ethereum. Karagiannis explains that while blockchain enthusiasts heralded immutable smart contracts as "code is law," InfoSec professionals immediately recognized that immutable code means that security vulnerabilities are also permanently immutable once deployed to the ledger.
### Common Solidity Vulnerabilities and Reentrancy Exploits At 08:20 and 14:15, Karagiannis deconstructs the mechanics of common smart contract flaws. He provides an in-depth breakdown of reentrancy attacks, showing how invoking an external fallback function before updating internal state balances allows an attacking contract to recursively drain funds. He also reviews integer overflows and underflows (prior to the widespread adoption of OpenZeppelin's SafeMath), uninitialized storage pointers that inadvertently overwrite critical contract owner variables, and miner-manipulated timestamp dependencies.
### The Parity Multi-Sig Wallet Hack At 19:39, the discussion focuses on the infamous Parity multi-signature wallet hack. Karagiannis details how developers extracted wallet functionality into a shared library contract to save deployment gas. However, because the library's initialization function (`initWallet`) was left uninitialized and unprotected by access controls, an attacker executed the function, claimed ownership of the shared library contract, and subsequently triggered `kill()` (suicide opcode), permanently freezing hundreds of millions of dollars across hundreds of dependent multi-sig wallets.
### Front-Running and Transaction-Ordering Dependence At 26:30 and 32:10, Karagiannis explores economic vulnerabilities unique to decentralized blockchains, particularly Transaction-Ordering Dependence (TOD) and front-running. Because transactions wait in the public mempool before miners assemble them into blocks, opportunistic actors and automated arbitrage bots can monitor pending transactions, pay higher gas prices to get mined first, and exploit decentralized exchanges or oracle updates before the victim's transaction confirms.
### Methodologies for Auditing and Formal Verification Concluding from 35:00 to 37:46, Karagiannis provides security guidance for smart contract developers and auditors. He emphasizes that traditional penetration testing methodologies must be augmented with threat modeling specific to token economics, comprehensive unit testing suites, automated bytecode scanners (such as Oyente and Mythril), and rigorous formal mathematical verification before deploying irreversible logic to the mainnet.
(AI summary — Gemini 3.8 Flash)
Related talks
Cryptocurrency·19 min
Josh Datko · Chris Quartier
Breaking Bitcoin Hardware Wallets
Creator Stage·21 min
Utvecklas · George
Traces the evolution of wallet draining attacks across Ethereum, Solana, and TON, demonstrating token spoofing exploits and transaction tracking methods.
Blockchain Village·31 min
Peiyu Wang
Demonstrates vulnerability discovery and exploitation techniques targeting insecure cryptocurrency software wallets.


