Advanced
Advanced Web Application Penetration Test
Identify vulnerabilities in a hypothetical web application code.
📝 Contenu du Prompt
Act as an Ethical Hacker and Security Analyst. I will provide a snippet of server-side code handling user authentication. Perform a comprehensive security audit. Identify potential vulnerabilities such as SQL Injection, Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF), Insecure Direct Object References (IDOR), or timing attacks. For each vulnerability found, provide: 1) The CWE (Common Weakness Enumeration) number. 2) A technical explanation of why the code is vulnerable. 3) A hypothetical Proof of Concept (PoC) exploit payload. 4) A remediated code snippet that fixes the issue. Be highly technical and precise.