Falhas do tipo CWE-89

12.879 resultados

Injeção de SQL

Fraqueza onde 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 banco de dados executa comandos não intencionais, comprometendo confidencialidade, integridade e disponibilidade dos dados.

Exemplo

Um formulário de login concatena o usuário digitado direto na query: `SELECT * FROM users WHERE login = '` + input + `'`. Se o usuário digita `admin' OR '1'='1`, a query vira `SELECT * FROM users WHERE login = 'admin' OR '1'='1'`, retornando todos os usuários e burlando autenticação.

Como mitigar

Use prepared statements (consultas parametrizadas) com placeholders, nunca concatene entrada do usuário. Valide e restrinja entrada (whitelist), aplique princípio do menor privilégio na conta do BD e use WAF como camada adicional.

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%