Activity 01
Code Review Challenge: Spot the Vulnerability
Give each pair a printed or screen-shared code snippet containing one or two deliberate vulnerabilities (SQL injection, missing input validation, hard-coded credentials). Pairs annotate the code identifying the vulnerability, explaining why it is exploitable, and proposing a fix. Each pair then presents their analysis to an adjacent pair for critique before the class compares findings.
Explain the importance of secure coding practices throughout the software development lifecycle.
Facilitation TipDuring the Code Review Challenge, ask students to annotate their reasoning directly on the code snippets to make their thought process visible.
What to look forPresent students with short code snippets, some containing common vulnerabilities (e.g., unsanitized user input in a database query). Ask them to identify the vulnerability, explain its potential impact, and suggest a specific secure coding practice to prevent it.