Weaknesses of type CWE-89

12,874 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-2022-27613HIGHImproper neutralization of special elements used in an SQL command ('SQL Injection') vulnerability in webapi component in Synology CardDAV SEPSS 1.1%CVE-2023-5495MEDIUMQDocs Smart School HTTP POST Request sql injectionEPSS 1.1%CVE-2020-5427MEDIUMPossibility of SQL Injection in Spring Cloud Data Flow Task Execution Sorting QueryEPSS 1.1%CVE-2015-10122MEDIUMwp-donate Plugin donate-display.php sql injectionEPSS 1.1%CVE-2023-25197—apache fineract: SQL injection vulnerability in certain procedure calls EPSS 1.1%CVE-2015-10100MEDIUMDynamic Widgets Plugin dynwid_class.php sql injectionEPSS 1.1%CVE-2024-50327HIGHSQL injection in Ivanti Endpoint Manager before 2024 November Security Update or 2022 SU6 November Security Update allows a remote authenticEPSS 1.1%CVE-2023-46807MEDIUMAn SQL Injection vulnerability in web component of EPMM before 12.1.0.0 allows an authenticated user with appropriate privilege to access orEPSS 1.1%CVE-2022-40933HIGHOnline Pet Shop We App v1.0 by oretnom23 is vulnerable to SQL injection via /pet_shop/classes/Master.php?f=delete_order,id.EPSS 1.1%CVE-2022-21176HIGHAirspan Networks Mimosa SQL InjectionEPSS 1.1%CVE-2022-26669HIGHASUS Control Center - SQL InjectionEPSS 1.1%CVE-2021-47693HIGHNagios XI < 5.8.5 Core Config Manager (CCM) SQL Injection via Improper Escaping in Search TextEPSS 1.1%CVE-2021-41262HIGHSQL Injection in GaletteEPSS 1.1%CVE-2023-4309CRITICALElection Services Co. (ESC) Internet Election Service is vulnerable to SQL injection in multiple pages and parameters. These vulnerabilitiesEPSS 1.1%CVE-2023-24652HIGHSimple Customer Relationship Management System v1.0 was discovered to contain a SQL injection vulnerability via the Description parameter unEPSS 1.0%CVE-2022-46763HIGHA SQL injection issue in a database stored function in TrueConf Server 5.2.0.10225 (fixed in 5.2.6.10025) allows a low-privileged database uEPSS 1.0%CVE-2023-24653HIGHSimple Customer Relationship Management System v1.0 was discovered to contain a SQL injection vulnerability via the oldpass parameter under EPSS 1.0%CVE-2023-24654HIGHSimple Customer Relationship Management System v1.0 was discovered to contain a SQL injection vulnerability via the name parameter under theEPSS 1.0%CVE-2023-24656HIGHSimple Customer Relationship Management System v1.0 was discovered to contain a SQL injection vulnerability via the subject parameter under EPSS 1.0%CVE-2023-24364HIGHSimple Customer Relationship Management System v1.0 was discovered to contain a SQL injection vulnerability via the username parameter underEPSS 1.0%