Fallos del tipo CWE-89

12.922 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-4436MEDIUMSourceCodester Inventory Management System edit_update.php sql injectionEPSS 0.7%CVE-2023-2774MEDIUMcode-projects Bus Dispatch and Information System view_branch.php sql injectionEPSS 0.7%CVE-2023-2107MEDIUMIBOS del&op=recycle sql injectionEPSS 0.7%CVE-2021-4328MEDIUM狮子鱼CMS ApiController.class.php goods_detail sql injectionEPSS 0.7%CVE-2023-4872MEDIUMSourceCodester Contact Manager App add.php sql injectionEPSS 0.7%CVE-2023-0781MEDIUMSourceCodester Canteen Management System removeOrder.php query sql injectionEPSS 0.7%CVE-2023-4851MEDIUMIBOS OA edit&op=member sql injectionEPSS 0.7%CVE-2023-4556MEDIUMSourceCodester Online Graduate Tracer System sexit.php mysqli_query sql injectionEPSS 0.7%CVE-2023-7130MEDIUMcode-projects College Notes Gallery login.php sql injectionEPSS 0.7%CVE-2024-50971MEDIUMA SQL injection vulnerability in print.php of Itsourcecode Construction Management System 1.0 allows remote attackers to execute arbitrary SEPSS 0.7%CVE-2024-7320MEDIUMitsourcecode Online Blood Bank Management System Admin Login index.php sql injectionEPSS 0.7%CVE-2023-2150MEDIUMSourceCodester Task Reminder System Master.php sql injectionEPSS 0.7%CVE-2023-2154MEDIUMSourceCodester Task Reminder System sql injectionEPSS 0.7%CVE-2024-50972MEDIUMA SQL injection vulnerability in printtool.php of Itsourcecode Construction Management System 1.0 allows remote attackers to execute arbitraEPSS 0.7%CVE-2023-24781CRITICALFunadmin v3.2.0 was discovered to contain a SQL injection vulnerability via the selectFields parameter at \member\MemberLevel.php.EPSS 0.7%CVE-2020-3462MEDIUMCisco Data Center Network Manager SQL Injection VulnerabilityEPSS 0.7%CVE-2024-2021MEDIUMNetentsec NS-ASG Application Security Gateway list_localuser.php sql injectionEPSS 0.7%CVE-2023-24777CRITICALFunadmin v3.2.0 was discovered to contain a SQL injection vulnerability via the id parameter at /databases/table/list.EPSS 0.7%CVE-2022-44298CRITICALSiteServer CMS 7.1.3 is vulnerable to SQL Injection.EPSS 0.7%CVE-2023-24241CRITICALForget Heart Message Box v1.1 was discovered to contain a SQL injection vulnerability via the name parameter at /admin/loginpost.php.EPSS 0.7%