Weaknesses of type CWE-89

12,853 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-35947CRITICALSQL injection in GLPIEPSS 1.2%CVE-2023-20110MEDIUMCisco Smart Software Manager On-Prem SQL Injection VulnerabilityEPSS 1.2%CVE-2022-1064CRITICALSQL injection through marking blog comments on bulk as spam in forkcms/forkcmsEPSS 1.2%CVE-2024-27299HIGHphpMyFAQ SQL Injection at "Save News"EPSS 1.2%CVE-2019-15995MEDIUMCisco DNA Spaces: Connector SQL Injection VulnerabilityEPSS 1.1%CVE-2022-46966CRITICALRevenue Collection System v1.0 was discovered to contain a SQL injection vulnerability at step1.php.EPSS 1.1%CVE-2021-33735—A vulnerability has been identified in SINEC NMS (All versions < V1.0 SP2 Update 1). A privileged authenticated attacker could execute arbitEPSS 1.1%CVE-2023-28424CRITICALSoko SQL Injection vulnerabilityEPSS 1.1%CVE-2022-41403CRITICALOpenCart 3.x Newsletter Custom Popup was discovered to contain a SQL injection vulnerability via the email parameter at index.php?route=exteEPSS 1.1%CVE-2024-13488HIGHLTL Freight Quotes – Estes Edition <= 3.3.7 - Unauthenticated SQL InjectionEPSS 1.1%CVE-2021-21930HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests at ‘sn_filter’ parameter to triEPSS 1.1%CVE-2021-21925HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests to trigger these vulnerabilitieEPSS 1.1%CVE-2021-21929HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests at ‘prod_filter’ parameter to tEPSS 1.1%CVE-2021-21931HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests at‘ stat_filter’ parameter to tEPSS 1.1%CVE-2022-1807HIGHMultiple SQLi vulnerabilities in Webadmin allow for privilege escalation from admin to super-admin in Sophos Firewall older than version 18.EPSS 1.1%CVE-2021-21934HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests to trigger this at ‘imei_filterEPSS 1.1%CVE-2020-15176HIGHSQL injection in GLPIEPSS 1.1%CVE-2021-21927HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests to trigger these vulnerabilitieEPSS 1.1%CVE-2021-21928HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests at ‘mac_filter’ parameter to trEPSS 1.1%CVE-2021-21932HIGHA specially-crafted HTTP request can lead to SQL injection. An attacker can make authenticated HTTP requests to trigger this at ‘name_filterEPSS 1.1%