Weaknesses of type CWE-89

12,894 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-1038MEDIUMSourceCodester Online Reviewer Management System questions-view.php sql injectionEPSS 0.8%CVE-2023-1848MEDIUMSourceCodester Online Payroll System attendance_row.php sql injectionEPSS 0.8%CVE-2023-1849MEDIUMSourceCodester Online Payroll System cashadvance_row.php sql injectionEPSS 0.8%CVE-2024-3768MEDIUMPHPGurukul/itsourcecode News Portal search.php sql injectionEPSS 0.8%CVE-2022-29250HIGHSQL injection in GLPIEPSS 0.8%CVE-2023-1439MEDIUMSourceCodester Medicine Tracker System GET Parameter view_details.php sql injectionEPSS 0.8%CVE-2023-1847MEDIUMSourceCodester Online Payroll System attendance.php sql injectionEPSS 0.8%CVE-2023-1461MEDIUMSourceCodester Canteen Management System createCategories.php query sql injectionEPSS 0.8%CVE-2023-1845MEDIUMSourceCodester Online Payroll System employee_row.php sql injectionEPSS 0.8%CVE-2024-10369MEDIUMCodezips Sales Management System addcustcom.php sql injectionEPSS 0.8%CVE-2024-11632MEDIUMcode-projects Simple Car Rental System book_car.php sql injectionEPSS 0.8%CVE-2024-2015MEDIUMZhiCms mcontroller.php getindexdata sql injectionEPSS 0.8%CVE-2026-75498HIGHWebkul QloApps SQL injectionEPSS 0.8%CVE-2024-11258MEDIUM1000 Projects Beauty Parlour Management System index.php sql injectionEPSS 0.8%CVE-2024-5116MEDIUMSourceCodester Online Examination System save.php sql injectionEPSS 0.8%CVE-2024-22983HIGHSQL injection vulnerability in Projectworlds Visitor Management System in PHP v.1.0 allows a remote attacker to escalate privileges via the EPSS 0.8%CVE-2026-75497HIGHWebkul QloApps SQL injectionEPSS 0.8%CVE-2024-12404HIGHCF Internal Link Shortcode <= 1.1.0 - Unauthenticated SQL InjectionEPSS 0.8%CVE-2024-12234MEDIUM1000 Projects Beauty Parlour Management System edit-customer-detailed.php sql injectionEPSS 0.8%CVE-2025-32830HIGHA vulnerability has been identified in TeleControl Server Basic (All versions < V3.1.2.2). The affected application is vulnerable to SQL injEPSS 0.8%