Falhas do tipo CWE-89

12.890 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-2023-1962HIGHSourceCodester Best Online News Portal POST Parameter forgot-password.php sql injectionEPSS 0.8%CVE-2023-0784HIGHSourceCodester Best Online News Portal Login Page sql injectionEPSS 0.8%CVE-2024-2646MEDIUMNetentsec NS-ASG Application Security Gateway sql injectionEPSS 0.8%CVE-2024-3422MEDIUMSourceCodester Online Courseware activatestud.php sql injectionEPSS 0.8%CVE-2022-46126HIGHHelmet Store Showroom Site v1.0 is vulnerable to SQL Injection via /hss/admin/brands/manage_brand.php?id=.EPSS 0.8%CVE-2022-46127HIGHHelmet Store Showroom Site v1.0 is vulnerable to SQL Injection via /hss/classes/Master.php?f=delete_product.EPSS 0.8%CVE-2022-41390CRITICALOcoMon v4.0 was discovered to contain a SQL injection vulnerability via the cod parameter at download.php.EPSS 0.8%CVE-2026-35168HIGHOpenSTAManager: SQL Injection via Aggiornamenti ModuleEPSS 0.8%CVE-2024-37857HIGHSQL Injection vulnerability in Lost and Found Information System 1.0 allows a remote attacker to escalate privileges via id parameter to phpEPSS 0.8%CVE-2024-33288HIGHPrison Management System Using PHP v1.0 was discovered to contain a SQL injection vulnerability via the username on the Admin login page.EPSS 0.8%CVE-2022-45331HIGHAeroCMS v0.0.1 was discovered to contain a SQL Injection vulnerability via the p_id parameter at \post.php. This vulnerability allows attackEPSS 0.8%CVE-2024-8569MEDIUMcode-projects Hospital Management System user-login.php sql injectionEPSS 0.8%CVE-2022-45330HIGHAeroCMS v0.0.1 was discovered to contain a SQL Injection vulnerability via the Category parameter at \category.php. This vulnerability allowEPSS 0.8%CVE-2023-3631CRITICALSQLi in Medart Notification PanelEPSS 0.8%CVE-2023-1856MEDIUMSourceCodester Air Cargo Management System GET Parameter track_shipment.php sql injectionEPSS 0.8%CVE-2023-1439MEDIUMSourceCodester Medicine Tracker System GET Parameter view_details.php sql injectionEPSS 0.8%CVE-2023-1351MEDIUMSourceCodester Computer Parts Sales and Inventory System cust_transac.php sql injectionEPSS 0.8%CVE-2023-1845MEDIUMSourceCodester Online Payroll System employee_row.php sql injectionEPSS 0.8%CVE-2023-1459MEDIUMSourceCodester Canteen Management System changeUsername.php sql injectionEPSS 0.8%CVE-2023-1850MEDIUMSourceCodester Online Payroll System login.php sql injectionEPSS 0.8%