Weaknesses of type CWE-89

13,265 results

Injeção SQL

Ocorre quando entrada do usuário é concatenada diretamente em comandos SQL sem validação ou sanitização, permitindo que um atacante insira código SQL malicioso. O aplicativo executa a consulta alterada, comprometendo confidencialidade, integridade e disponibilidade dos dados.

Example

Um formulário de login que monta a query assim: `SELECT * FROM users WHERE email = '" + emailDoFormulario + "'`. Se o usuário digitar `admin'--`, a query vira `SELECT * FROM users WHERE email = 'admin'--'` e bypassa a validação de senha, autenticando como admin.

How to mitigate

Use prepared statements ou stored procedures com parâmetros vinculados (bind parameters). Em Java use PreparedStatement; em Python use placeholders com psycopg2 ou SQLAlchemy; em qualquer linguagem evite concatenação de strings. Combine com validação de entrada e princípio do menor privilégio no banco de dados.

CVE-2026-78201MEDIUMitsourcecode Payroll System admin_class.php login sql injectionEPSS 0.4%CVE-2026-86290MEDIUMSourceCodester Online Voting System ajax.php save_category sql injectionEPSS 0.4%CVE-2026-86161MEDIUMSourceCodester Online Voting System ajax.php delete_category sql injectionEPSS 0.4%CVE-2026-13521MEDIUMSourceCodester Class and Exam Timetabling System preview5.php sql injectionEPSS 0.4%CVE-2026-91004MEDIUMSourceCodester Online Faculty Clearance System delete_faculty1.php sql injectionEPSS 0.4%CVE-2026-14735MEDIUMcode-projects Smart Parking System parkings.php sql injectionEPSS 0.4%CVE-2026-14695MEDIUMSourceCodester Multi-Vendor Online Grocery Management System Registration Users.php save_client sql injectionEPSS 0.4%CVE-2026-81203MEDIUMSourceCodester Simple Online Food Ordering System ajax.php login2 sql injectionEPSS 0.4%CVE-2026-85516MEDIUMcode-projects Vehicle Management System busprofile.php sql injectionEPSS 0.4%CVE-2026-75986MEDIUMcode-projects Online Job Portal System Password Recovery ForPass.php sql injectionEPSS 0.4%CVE-2026-76764MEDIUMcode-projects Employee Management System Admin Login Endpoint aprocess.php sql injectionEPSS 0.4%CVE-2026-16014MEDIUMcode-projects Hospital Bed Management System Login Form sql injectionEPSS 0.4%CVE-2026-14700MEDIUMcode-projects Internship Management System Employer Login Endpoint login.php sql injectionEPSS 0.4%CVE-2026-19196MEDIUMSourceCodester Photo Share Website ajax.php login sql injectionEPSS 0.4%CVE-2026-15190MEDIUMSourceCodester Simple and Nice Shopping Cart Script login.php sql injectionEPSS 0.4%CVE-2026-92926MEDIUMcode-projects Matrimonial System partner_preference.php writepartnerprefs sql injectionEPSS 0.4%CVE-2026-90876MEDIUMSourceCodester Online Faculty Clearance System delete_requirement.php sql injectionEPSS 0.4%CVE-2026-14688MEDIUMitsourcecode Online Hotel Management System login.php sql injectionEPSS 0.4%CVE-2026-76998MEDIUMSourceCodester Simple Online Food Ordering System ajax.php delete_category sql injectionEPSS 0.4%CVE-2026-90844MEDIUMPHPGurukul Daily Expense Tracker System Login index.php sql injectionEPSS 0.4%