Skip to content

Lesson 5 · 3 min · Advanced

Spot the bug: access control

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.

Vulnerable mint

Click the line you think is the bug
Vulnerable mint
Educational only, not financial or legal advice.