Weaknesses of type CWE-89

12,920 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-1514CRITICALWP eCommerce <= 3.15.1 - Unauthenticated SQL InjectionEPSS 0.7%CVE-2020-36084CRITICALSQL Injection vulnerability in SourceCodester Responsive E-Learning System 1.0 allows remote attackers to inject sql query in /elearning/delEPSS 0.7%CVE-2023-1742MEDIUMIBOS Report Search getlist sql injectionEPSS 0.7%CVE-2023-1957MEDIUMSourceCodester Online Computer and Laptop Store Subcategory sql injectionEPSS 0.7%CVE-2023-1953MEDIUMSourceCodester Online Computer and Laptop Store index.php sql injectionEPSS 0.7%CVE-2023-1959MEDIUMSourceCodester Online Computer and Laptop Store sql injectionEPSS 0.7%CVE-2023-0561MEDIUMSourceCodester Online Tours & Travels Management System s.php sql injectionEPSS 0.7%CVE-2024-9874MEDIUMWordPress Poll Maker Plugin <= 5.4.6 - Authenticated (Administrator+) Time-Based SQL InjectionEPSS 0.7%CVE-2022-47588MEDIUMWordPress Simple Photo Gallery Plugin <= v1.8.1 is vulnerable to SQL InjectionEPSS 0.7%CVE-2023-3807MEDIUMCampcodes Beauty Salon Management System edit_product.php sql injectionEPSS 0.7%CVE-2023-1954MEDIUMSourceCodester Online Computer and Laptop Store manage.php save_inventory sql injectionEPSS 0.7%CVE-2024-38692HIGHWordPress spiffy-calendar plugin <= 4.9.11 - SQL Injection vulnerabilityEPSS 0.7%CVE-2023-1960MEDIUMSourceCodester Online Computer and Laptop Store sql injectionEPSS 0.7%CVE-2023-3808MEDIUMHospital Management System patientforgotpassword.php sql injectionEPSS 0.7%CVE-2023-1747MEDIUMIBOS mark&op=delFromSend sql injectionEPSS 0.7%CVE-2023-0679MEDIUMSourceCodester Canteen Management System removeUser.php sql injectionEPSS 0.7%CVE-2023-36508HIGHWordPress Contact Form to DB by BestWebSoft Plugin <= 1.7.1 is vulnerable to SQL InjectionEPSS 0.7%CVE-2023-6607MEDIUMTongda OA 2017 delete.php sql injectionEPSS 0.7%CVE-2024-57660HIGHAn issue in the sqlo_expand_jts component of openlink virtuoso-opensource v7.2.11 allows attackers to cause a Denial of Service (DoS) via crEPSS 0.7%CVE-2025-1702HIGHUltimate Member <= 2.10.0 - Unauthenticated SQL Injection via search ParameterEPSS 0.7%