Weaknesses of type CWE-89

13,265 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-2026-85398MEDIUMcode-projects Hospital Information System viewReq.php viewReq sql injectionEPSS 0.4%CVE-2026-76762MEDIUMcode-projects Assessment Management welcome.php sql injectionEPSS 0.4%CVE-2026-7632MEDIUMcode-projects Online Hospital Management System viewappointment.php sql injectionEPSS 0.4%CVE-2026-19231MEDIUMSourceCodester Simple Doctors Appointment System ajax.php delete_appointment sql injectionEPSS 0.4%CVE-2026-15676MEDIUMcode-projects Online Job Portal DeleteUser.php sql injectionEPSS 0.4%CVE-2026-82615MEDIUMitsourcecode Online Medicine Delivery System Password Recovery passwordrecover.php find_phone sql injectionEPSS 0.4%CVE-2026-14747MEDIUMcode-projects Real State Services addprojectsale.php sql injectionEPSS 0.4%CVE-2026-13526MEDIUMSourceCodester Class and Exam Timetabling System edit_class.php sql injectionEPSS 0.4%CVE-2026-86162MEDIUMSourceCodester Online Voting System ajax.php login sql injectionEPSS 0.4%CVE-2026-19825MEDIUMSourceCodester Simple Client Management System Master.php save_service sql injectionEPSS 0.4%CVE-2026-19919MEDIUMcode-projects Online Shopping System Login login.php sql injectionEPSS 0.4%CVE-2026-14735MEDIUMcode-projects Smart Parking System parkings.php sql injectionEPSS 0.4%CVE-2026-92405MEDIUMSourceCodester Inventory and Monitoring System index.php sql injectionEPSS 0.4%CVE-2026-86208MEDIUMSourceCodester Class and Exam Timetabling System delete_teacher.php sql injectionEPSS 0.4%CVE-2026-78171MEDIUMitsourcecode Sales and Inventory System processlogin.php sql injectionEPSS 0.4%CVE-2026-13498MEDIUMyashpokharna2555 restaurent-management-system POST Parameter forgotpassword.php sql injectionEPSS 0.4%CVE-2026-92926MEDIUMcode-projects Matrimonial System partner_preference.php writepartnerprefs sql injectionEPSS 0.4%CVE-2026-14769MEDIUMcode-projects Real State Services pay.php sql injectionEPSS 0.4%CVE-2026-93980MEDIUMcode-projects Internship Management System Admin Login Form login.php sql injectionEPSS 0.4%CVE-2026-14640MEDIUMCodeAstro Apartment Visitor Management System Login index.php sql injectionEPSS 0.4%