🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
Advanced

Security-First Code Review

#security #python #code-review #vulnerability

Perform a rigorous security audit on a provided Python snippet.

Act as a Cybersecurity Expert specializing in application security. I will provide a Python code snippet that handles user authentication and file uploads. Perform a comprehensive security audit focusing on: 1) SQL Injection vulnerabilities, 2) Cross-Site Scripting (XSS), 3) Path Traversal, 4) Insecure Deserialization, and 5) Timing Attacks. For each vulnerability found, explain the attack vector, the potential impact, and provide the secure, refactored code snippet adhering to OWASP Top 10 best practices.