🏠 Accueil
基準測試
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 人工智能詞彙表 🔗 Liens Utiles
Advanced

Python Security Code Audit

#coding #security #python #audit

Perform a line-by-line security audit on a Python code snippet to identify vulnerabilities.

Act as a Cybersecurity Expert specializing in application security. Review the following Python code snippet (which you should imagine involves user input handling and database interaction) and identify potential vulnerabilities such as SQL Injection, Cross-Site Scripting (XSS), or insecure deserialization. For each vulnerability found, explain the risk, provide a specific code example of how it can be exploited, and rewrite the code to follow OWASP best practices for secure coding.