Weaknesses of type CWE-89

12,879 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-2020-3154MEDIUMCisco Cloud Web Security SQL Injection VulnerabilityEPSS 0.9%CVE-2023-48253HIGHThe vulnerability allows a remote authenticated attacker to read or update arbitrary content of the authentication database via a crafted HTEPSS 0.9%CVE-2017-20030MEDIUMPHPList Sending Campain sql injectionEPSS 0.9%CVE-2024-34310HIGHJin Fang Times Content Management System v3.2.3 was discovered to contain a SQL injection vulnerability via the id parameter.EPSS 0.9%CVE-2023-28701CRITICALELITE Web Fax - SQL InjectionEPSS 0.9%CVE-2017-20141MEDIUMItech Movie Portal Script movie.php Union sql injectionEPSS 0.9%CVE-2023-3457MEDIUMSourceCodester Shopping Website index.php sql injectionEPSS 0.9%CVE-2023-3458MEDIUMSourceCodester Shopping Website forgot-password.php sql injectionEPSS 0.9%CVE-2017-20139MEDIUMItech Movie Portal Script show_news.php Error sql injectionEPSS 0.9%CVE-2017-20132MEDIUMItech Multi Vendor Script product-list.php sql injectionEPSS 0.9%CVE-2022-34022HIGHSQL injection vulnerability in ResIOT IOT Platform + LoRaWAN Network Server through 4.1.1000114 via a crafted POST request to /ResiotQueryDBEPSS 0.9%CVE-2017-20134MEDIUMItech Freelancer Script category.php sql injectionEPSS 0.9%CVE-2017-20142MEDIUMItech Movie Portal Script artist-display.php Union sql injectionEPSS 0.9%CVE-2017-20143MEDIUMItech Movie Portal Script film-rating.php Error sql injectionEPSS 0.9%CVE-2022-1358MEDIUMCambium Networks cnMaestro SQL InjectionEPSS 0.9%CVE-2020-27240MEDIUMAn exploitable SQL injection vulnerability exists in ‘getAssets.jsp’ page of OpenClinic GA 5.173.3. The componentStatus parameter in the getEPSS 0.9%CVE-2020-27237MEDIUMAn exploitable SQL injection vulnerability exists in ‘getAssets.jsp’ page of OpenClinic GA 5.173.3. The code parameter in the The nomenclatuEPSS 0.9%CVE-2022-43226HIGHOnline Diagnostic Lab Management System v1.0 was discovered to contain a SQL injection vulnerability via the id parameter at /odlms/?page=apEPSS 0.9%CVE-2022-43288HIGHRukovoditel v3.2.1 was discovered to contain a SQL injection vulnerability via the order_by parameter at /rukovoditel/index.php?module=logs/EPSS 0.9%CVE-2020-27241MEDIUMAn exploitable SQL injection vulnerability exists in ‘getAssets.jsp’ page of OpenClinic GA 5.173.3. The serialnumber parameter in the getAssEPSS 0.9%