Check Code for Security Issues

Use Copilot to look for common security pitfalls in a code snippet.

category:code-review
security
security-review
0

Prompt

Review the following code for security issues.
  
  Focus on:
  - Injection risks (SQL, command, etc.).
  - Insecure handling of secrets or tokens.
  - Broken authentication/authorization logic.
  - Insecure use of crypto or randomness.
  
  List each issue you find and suggest a fix.
  
  Code:
  
  [Paste code here]