Fallos del tipo CWE-89

12.898 resultados

Injeção de SQL

Ocorre quando dados fornecidos por um usuário são incorporados diretamente em comandos SQL sem validação ou sanitização, permitindo que um atacante modifique a lógica da consulta. O risco é grave: exposição de dados sensíveis, modificação ou deleção de registros, e até comprometimento do servidor de banco de dados.

Ejemplo

Um formulário de login que constrói a consulta como `SELECT * FROM users WHERE login = '` + entrada_do_usuario + `'` permite que alguém digite `admin' --` e contorne a verificação de senha, ou `' OR '1'='1` para listar todos os usuários.

Cómo mitigar

Use prepared statements ou stored procedures com parâmetros vinculados (nunca concatenação de strings). Se necessário filtrar, aplique whitelist rigorosa e escape adequado para o banco de dados específico. Implemente validação de entrada e princípio do menor privilégio na conta do banco.

CVE-2023-1848MEDIUMSourceCodester Online Payroll System attendance_row.php sql injectionEPSS 0.8%CVE-2023-1038MEDIUMSourceCodester Online Reviewer Management System questions-view.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%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-1845MEDIUMSourceCodester Online Payroll System employee_row.php sql injectionEPSS 0.8%CVE-2023-1847MEDIUMSourceCodester Online Payroll System attendance.php sql injectionEPSS 0.8%CVE-2023-1846MEDIUMSourceCodester Online Payroll System deduction_row.php sql injectionEPSS 0.8%CVE-2023-1461MEDIUMSourceCodester Canteen Management System createCategories.php query sql injectionEPSS 0.8%CVE-2024-3768MEDIUMPHPGurukul/itsourcecode News Portal search.php sql injectionEPSS 0.8%CVE-2024-28559HIGHSQL injection vulnerability in Niushop B2B2C v.5.3.3 and before allows an attacker to escalate privileges via the setPrice() function of theEPSS 0.8%CVE-2026-75497HIGHWebkul QloApps SQL injectionEPSS 0.8%CVE-2026-75498HIGHWebkul QloApps SQL injectionEPSS 0.8%CVE-2024-12404HIGHCF Internal Link Shortcode <= 1.1.0 - Unauthenticated SQL InjectionEPSS 0.8%CVE-2024-2015MEDIUMZhiCms mcontroller.php getindexdata 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-5116MEDIUMSourceCodester Online Examination System save.php sql injectionEPSS 0.8%CVE-2024-12234MEDIUM1000 Projects Beauty Parlour Management System edit-customer-detailed.php sql injectionEPSS 0.8%