advanced
Security Vulnerability Audit
Identify security flaws in a provided authentication snippet.
📝 プロンプトの内容
Analyze the following Python pseudocode for a user authentication API. Identify potential security vulnerabilities such as SQL Injection, Cross-Site Scripting (XSS), or insecure direct object references. Propose specific code refactors to mitigate these issues following OWASP Top 10 best practices.