Introduction to Smart Contract Vulnerabilities
Why smart contracts are attractive targets and the vulnerability classes every Ethereum developer must recognise: reentrancy, arithmetic and access control flaws, unsafe external calls and denial of service, and the risks of transaction ordering, randomness and time.
- 5 lessons
- Module quiz
Smart contracts hold value in public, immutable code, which makes them attractive targets. This module explains the threat environment and the vulnerability classes every developer must recognise.
What the exam expects
Expect scenario and code questions that ask you to name the vulnerability in a contract or explain how an exploit works: reentrancy, overflow and unsafe casts, missing access control and tx.origin, unchecked calls, denial of service, front-running and weak randomness.
How this module is organized
Smart Contract Security Fundamentals covers the attacker's capabilities and past incidents. Reentrancy explains the classic attack and its variants. Arithmetic and Access Control Flaws covers numeric errors and authorisation. Unsafe External Calls and Denial of Service covers failed calls and stuck contracts. Transaction Ordering, Randomness and Time covers MEV, randomness and timestamps.
- Smart Contract Security Fundamentals Lesson 1
- Reentrancy Lesson 2
- Arithmetic and Access Control Flaws Lesson 3
- Unsafe External Calls and Denial of Service Lesson 4
- Transaction Ordering, Randomness and Time Lesson 5
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 8 questions