Ethernaut CTF - Shop (Level 21)

Опубликовано: 11 Март 2026
на канале: Dylan Davis
923
35

Get the free 30-day AI Mastery series 💌: https://insights.gradientlabs.co/

Work with me 💪: https://offerings.gradientlabs.co/ Next up! Level 21 - Shop

In this CTF series, we’re going to learn more about the practical side of smart contract auditing and security.

If you’re interested in more/similar content, checkout my channel or website below.

My digital dumping ground - dylandavis.net

Additional Resources
Ethernaut CTF - https://ethernaut.openzeppelin.com/
Eshan solution (old) -   / ethernaut-lvl-21-shop-walkthrough-how-to-u...  
ThisPost solution (old) -   / ethernaut-21-shop-writeups  
Reasoning for updating challenge - https://github.com/OpenZeppelin/ether...
Coder-question solution (old) - https://coder-question.com/cq-blog/52...
R1oga solution (new) - https://github.com/r1oga/ethernaut#ta...
Ternary operator (JS) - https://developer.mozilla.org/en-US/d...
Conditional operator (Solidity docs) - https://docs.soliditylang.org/en/late...


Timeline
00:00 - Intro to challenge
01:24 - Code review (target)
04:35 - Different solutions
08:55 - Code review (attack)
10:57 - Ternary operators
12:45 - Solving challenge
14:05 - Outro