Weaknesses of type CWE-89

12,965 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-2024-6065MEDIUMitsourcecode Bakery Online Ordering System index.php sql injectionEPSS 0.6%CVE-2024-7444MEDIUMitsourcecode Ticket Reservation System Login Page login.php sql injectionEPSS 0.6%CVE-2024-10737MEDIUMCodezips Free Exam Hall Seating Management System teacher.php sql injectionEPSS 0.6%CVE-2024-11055MEDIUM1000 Projects Beauty Parlour Management System admin-profile.php sql injectionEPSS 0.6%CVE-2026-23980MEDIUMApache Superset: Improper Neutralization of Special Elements used in a SQL CommandEPSS 0.6%CVE-2024-9296MEDIUMSourceCodester Advocate Office Management System forgot_pass.php sql injectionEPSS 0.6%CVE-2024-7366MEDIUMSourceCodester Tracking Monitoring Management System Login ajax.php sql injectionEPSS 0.6%CVE-2024-7274MEDIUMitsourcecode Alton Management System reservation_status.php sql injectionEPSS 0.6%CVE-2024-7286MEDIUMSourceCodester Establishment Billing Management System Login sql injectionEPSS 0.6%CVE-2024-11819MEDIUM1000 Projects Portfolio Management System MCA forgot_password_process.php sql injectionEPSS 0.6%CVE-2024-5894MEDIUMSourceCodester Online Eyewear Shop manage_product.php sql injectionEPSS 0.6%CVE-2024-10167MEDIUMCodezips Sales Management System deletecustind.php sql injectionEPSS 0.6%CVE-2024-7164MEDIUMSourceCodester School Fees Payment System sql injectionEPSS 0.6%CVE-2023-45120HIGHOnline Examination System v1.0 - Multiple Authenticated SQL Injections (SQLi)EPSS 0.6%CVE-2024-9295MEDIUMSourceCodester Advocate Office Management System login.php sql injectionEPSS 0.6%CVE-2026-54760CRITICALLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callsEPSS 0.6%CVE-2024-7311MEDIUMcode-projects Online Bus Reservation Site register.php sql injectionEPSS 0.6%CVE-2024-8219MEDIUMcode-projects Responsive Hotel Site index.php sql injectionEPSS 0.6%CVE-2023-44481HIGHLeave Management System Project v1.0 - Multiple Authenticated SQL Injections (SQLi)EPSS 0.6%CVE-2024-9818MEDIUMSourceCodester Online Veterinary Appointment System manage_category.php sql injectionEPSS 0.6%