Weaknesses of type CWE-89

12,890 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-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%