Advanced Code Review #security #SQL-injection #credentials

Security Review Comments

2 exercises — how to flag security vulnerabilities in code reviews with the right severity, specifics, and remediation guidance.

0 / 2 completed
Security comment essentials
  • Always blocking: Security issues are never "nit" or "optional".
  • Name the vulnerability: SQL injection, IDOR, XSS, hardcoded secret, missing auth check.
  • Explain the attack: How could this be exploited? What is the blast radius?
  • State the fix: Parameterised queries, environment variables, input validation, auth middleware.
1 / 2
You spot hardcoded credentials in a PR:
const API_KEY = "sk-live-abc123xyz";

Which security review comment is best?