Weaknesses of type CWE-89

12,895 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-2023-2677MEDIUMSourceCodester Covid-19 Contact Tracing System manage.php sql injectionEPSS 0.8%CVE-2023-3147MEDIUMSourceCodester Online Discussion Forum Site view_category.php sql injectionEPSS 0.8%CVE-2023-3148MEDIUMSourceCodester Online Discussion Forum Site manage_post.php sql injectionEPSS 0.8%CVE-2024-27940HIGHA vulnerability has been identified in RUGGEDCOM CROSSBOW (All versions < V5.5). The affected systems allow any authenticated user to send aEPSS 0.8%CVE-2024-1173HIGHWP ERP | Complete HR solution with recruitment & job listings | WooCommerce CRM & Accounting <= 1.13.1 - Authenticated (AccountingManager+) SQL InjectionEPSS 0.8%CVE-2023-3151MEDIUMSourceCodester Online Discussion Forum Site manage_user.php sql injectionEPSS 0.8%CVE-2026-71237CRITICALMiantang IoT-PHP - Unauthenticated SQL Injection in /userloginEPSS 0.8%CVE-2024-27941HIGHA vulnerability has been identified in RUGGEDCOM CROSSBOW (All versions < V5.5). The affected client systems do not properly sanitize input EPSS 0.8%CVE-2023-3145MEDIUMSourceCodester Online Discussion Forum Site sql injectionEPSS 0.8%CVE-2023-0244MEDIUMTuziCMS KefuController.class.php delall sql injectionEPSS 0.8%CVE-2024-34220HIGHSourcecodester Human Resource Management System 1.0 is vulnerable to SQL Injection via the 'leave' parameter.EPSS 0.8%CVE-2023-47990CRITICALSQL Injection vulnerability in components/table_manager/html/edit_admin_table.php in CuppaCMS V1.0 allows attackers to run arbitrary SQL comEPSS 0.8%CVE-2024-2927HIGHcode-projects Mobile Shop Login Page Details.php sql injectionEPSS 0.8%CVE-2022-39303HIGHRee6 vulnerable to SQL InjectionEPSS 0.8%CVE-2023-2955MEDIUMSourceCodester Students Online Internship Timesheet System GET Parameter rendered_report.php sql injectionEPSS 0.8%CVE-2022-33880CRITICALhms-staff.php in Projectworlds Hospital Management System Mini-Project through 2018-06-17 allows SQL injection via the type parameter.EPSS 0.8%CVE-2024-0247HIGHCodeAstro Online Food Ordering System Admin Panel sql injectionEPSS 0.8%CVE-2024-0971MEDIUM A SQL injection vulnerability exists where an authenticated, low-privileged remote attacker could potentially alter scan DB content. EPSS 0.8%CVE-2023-23660HIGHWordPress MainWP Maintenance Extension Plugin <= 4.1.1 is vulnerable to SQL InjectionEPSS 0.8%CVE-2023-6402MEDIUMPHPGurukul Nipah Virus Testing Management System add-phlebotomist.php sql injectionEPSS 0.8%