Learning How to Build Secure Smart Contracts
summary
Lists the 8 vulnerabilities developers must fix: timestamp dependence, unexpected ether, tx.origin phishing, delegatecall library attacks, overflow/underflow, DoS patterns, front‑running/MEV, and reentrancy, with code examples showing how miners or malicious contracts exploit each. Recommends concrete fixes: avoid block timestamps for funds logic, track balances manually, ban tx.origin, use library/keyword patterns, use SafeMath/solidity v0.8 or checks, prefer withdrawal patterns and transfer-or-state-first, add proxies or kill switches for upgrades, run audits and consider Chainlink fair sequencing services for ordering.
AI-written summary · about
chapters (24)
- 0:00Intro
- 1:47Smart Contract Security
- 4:26Timestamp Dependence and Manipulation Solutions
- 6:28Unexpected Ether: Solutions
- 8:256: Tx.Origin: Solutions
- 9:38S: delegateCall: Parity Wallet Exploit
- 10:16Overflow/Underflow Attack
- 10:54Overflow/Underflow: Beauty Ecosystem Coin
- 11:05Overflow/Underflow: Solutions
- 11:37Dos Attacks: Looping
- 12:04Dos Attacks: Owner Operations
- 12:31Dos Attacks: External Calls
- 12:48Dos Attacks: Solutions
- 14:06Race Conditions/Front Running Current Solutions
- 14:31Race Conditions/Front Running Chainlink FSS
- 15:40Re-entrancy Attack: Solutions
- 16:11Re-entrancy Attack: The DAO
- 16:32Other Vulnerabilities and Exploits
- 16:44Testing Your Smart Contracts
- 16:59Fixing Issues: Shipping a New Version
- 17:13Fixing Issues: Upgradeable Contracts
- 17:38Kill Switch
- 17:52Get External Audits
- 18:29Summary
related talks
20mLearning How to Build Secure Smart Contracts
12mSmart Contract Security
51mA Deal with the Devil: Breaking Smart Contracts
25mCommSec D2 - Smart Contract (In)Security
36mDeciphering Web3 Security: Implications and Innovations
20mSolidity's most common security pitfalls and its best safeguards
43mOutsmarting Smart Contracts
01h 31mHow to find Solidity vulnerabilities
