Falhas do tipo CWE-791

38 resultados

Filtragem Incompleta de Elementos Especiais

A aplicação tenta bloquear ou sanitizar caracteres ou padrões perigosos (como tags HTML, comandos SQL, etc.), mas a implementação é incompleta e permite que um atacante contorne o filtro usando variações, codificações ou técnicas não previstas. O risco é que o código malicioso passa pela validação e é executado no contexto não esperado.

Exemplo

Um formulário remove tags <script>, mas um atacante injeta <sCrIPt> (com maiúsculas variadas) ou <svg onload=alert()> e consegue executar JavaScript porque a filtragem não cobriu todos os casos. Outro cenário: um filtro remove ' para bloquear SQL injection, mas não trata sequências de escape como \' ou %27.

Como mitigar

Use uma abordagem de whitelist (permitir apenas o que é seguro) em vez de blacklist. Aplique sanitização com bibliotecas consolidadas (DOMPurify, OWASP ESAPI) e valide com regex case-insensitive e decodificação múltipla. Para SQL, prefira prepared statements em vez de construir queries com filtros manuais.

CVE-2020-36827MEDIUMThe XAO::Web module before 1.84 for Perl mishandles < and > characters in JSON output during use of json-embed in Web::Action.EPSS 0.3%CVE-2025-0324CRITICALThe VAPIX Device Configuration framework allowed a privilege escalation, enabling a lower-privileged user to gain administrator privileges.EPSS 0.3%CVE-2026-48208MEDIUMDenial-of-Service via SVG Rendering in TicketEPSS 0.3%CVE-2026-11998HIGHAngularJS XSS via SCE resource URL sanitization bypassEPSS 0.3%CVE-2025-6518MEDIUMPySpur-Dev pyspur Jinja2 Template single_llm_call.py SingleLLMCallNode special elements used in a template engineEPSS 0.3%CVE-2026-5559MEDIUMAntaresMugisho PyBlade AST Validation sandbox.py _is_safe_ast special elements used in a template engineEPSS 0.3%CVE-2023-31172MEDIUMIncomplete Filtering of Special ElementsEPSS 0.3%CVE-2025-2336MEDIUMAngularJS improper sanitization in SVG '<image>' element with 'ngSanitize'EPSS 0.3%CVE-2026-6984MEDIUMAstrBotDevs AstrBot Dashboard API t2i.py create_template special elements used in a template engineEPSS 0.3%CVE-2026-9498MEDIUMDromara lamp-cloud Message Template GroovyClassLoader.parseClass special elements used in a template engineEPSS 0.3%CVE-2025-9094MEDIUMThingsBoard Add Gateway special elements used in a template engineEPSS 0.3%CVE-2023-1076MEDIUMA flaw was found in the Linux Kernel. The tun/tap sockets have their socket UID hardcoded to 0 due to a type confusion in their initializatiEPSS 0.3%CVE-2026-3714MEDIUMOpenCart Incomplete Fix CVE-2024-36694 template.php save special elements used in a template engineEPSS 0.3%CVE-2025-59303MEDIUMHAProxy Kubernetes Ingress Controller before 3.1.13, when the config-snippets feature flag is used, accepts config snippets from users with EPSS 0.2%CVE-2026-5987MEDIUMSanluan PublicCMS FreeMarker Template AbstractFreemarkerView.java AbstractFreemarkerView.doRender special elements used in a template engineEPSS 0.2%CVE-2026-8740MEDIUMSanluan PublicCMS templateResult API TemplateResultDirective.java execute special elements used in a template engineEPSS 0.2%CVE-2024-39283HIGHIncomplete filtering of special elements in Intel(R) TDX module software before version TDX_1.5.01.00.592 may allow an authenticated user toEPSS 0.2%CVE-2024-45481HIGHImproper authentication in SSH of B&R APROLEPSS 0.1%