Quest 3.1: Spot the Vulnerability
🟢 Easy 15 minutes Block 3: Security
🎯 Goal
ค้นหา security vulnerabilities ใน AI-generated code
📋 Instructions
- Review vulnerable code ใน
vulnerable.js - ระบุ vulnerabilities ทั้งหมด:
- SQL Injection
- Hardcoded Secrets
- Weak Hashing
- No Input Validation
- Path Traversal
- XSS
- Document แต่ละ vulnerability
- รัน tests เพื่อตรวจสอบ
🎮 Code Playground
✅ Verification
node test.js 🔍 Common Vulnerabilities
| Vulnerability | Severity | Fix |
|---|---|---|
| SQL Injection | Critical | Parameterized queries |
| Hardcoded Secrets | Critical | Environment variables |
| Weak Hashing | High | bcrypt/argon2 |
| Path Traversal | High | Sanitize paths |
| XSS | High | Escape HTML |