Weaknesses of type CWE-89

12,834 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-40347CRITICALSQL Injection vulnerability in Intern Record System version 1.0 in /intern/controller.php in 'phone', 'email', 'deptType' and 'name' parametEPSS 5.3%CVE-2024-36517HIGHSQL InjectionEPSS 5.3%CVE-2020-27869HIGHThis vulnerability allows remote attackers to escalate privileges on affected installations of SolarWinds Network Performance Monitor 2020 HEPSS 5.3%CVE-2024-10660MEDIUMESAFENET CDG HookService.java deleteHook sql injectionEPSS 5.3%CVE-2023-4974MEDIUMAcademy LMS GET Parameter filter sql injectionEPSS 5.3%CVE-2021-24791Header Footer Code Manager < 1.1.14 - Admin+ SQL InjectionsEPSS 5.2%CVE-2024-5586HIGHSQL InjectionEPSS 5.2%CVE-2018-10915HIGHA vulnerability was found in libpq, the default PostgreSQL client library where libpq failed to properly reset its internal state between coEPSS 5.2%CVE-2018-16850HIGHpostgresql before versions 11.1, 10.6 is vulnerable to a to SQL injection in pg_upgrade and pg_dump via CREATE TRIGGER ... REFERENCING. UsinEPSS 5.1%CVE-2023-0630Slimstat Analytics < 4.9.3.3 - Subscriber+ SQL InjectionEPSS 5.1%CVE-2022-3141Translatepress Multilinugal < 2.3.3 - Admin+ SQLiEPSS 5.1%CVE-2024-21775HIGHSQL InjectionEPSS 5.0%CVE-2024-0253HIGHSQL InjectionEPSS 5.0%CVE-2024-29275CRITICALSQL injection vulnerability in SeaCMS version 12.9, allows remote unauthenticated attackers to execute arbitrary code and obtain sensitive iEPSS 5.0%CVE-2020-14497Advantech iView, versions 5.6 and prior, contains multiple SQL injection vulnerabilities that are vulnerable to the use of an attacker-contrEPSS 4.9%CVE-2024-39250CRITICALEfroTech Timetrax v8.3 was discovered to contain an unauthenticated SQL injection vulnerability via the q parameter in the search web interfEPSS 4.9%CVE-2023-40056HIGHSolarWinds Platform SQL Injection Remote Code Execution VulnerabilityEPSS 4.8%CVE-2024-1597CRITICALpgjdbc SQL Injection via line comment generationEPSS 4.8%CVE-2022-2467HIGHSourceCodester Garage Management System login.php sql injectionEPSS 4.8%CVE-2016-9488ManageEngine Applications Manager versions 12 and 13 suffer from remote SQL injection vulnerabilitiesEPSS 4.7%