On this page
Spot the bug — access control
A function that should be restricted but isn't is one of the most common (and most embarrassing) bug classes. Anyone who calls it can do whatever it does — drain the contract, mint tokens, change the owner.
Lesson 5 · 3 min · Advanced
A function that should be restricted but isn't is one of the most common (and most embarrassing) bug classes. Anyone who calls it can do whatever it does — drain the contract, mint tokens, change the owner.