Falhas do tipo CWE-351

15 resultados

Distinção Insuficiente de Tipos

A fraqueza ocorre quando o código não diferencia adequadamente entre tipos de dados ou objetos distintos, tratando-os como equivalentes e permitindo operações indevidas. Um atacante explora essa confusão para contornar validações, acessar recursos não autorizados ou provocar comportamentos inesperados.

Exemplo

Um sistema que aceita tanto um ID de usuário (inteiro) quanto uma string de comando no mesmo parâmetro, sem validar qual tipo foi fornecido. Se o código trata ambos da mesma forma, um atacante pode injetar uma string maliciosa onde um ID era esperado, contornando controles de segurança.

Como mitigar

Implemente validação rigorosa de tipos na entrada (whitelisting), use linguagens com tipagem forte ou ative verificação estática. Garanta que cada campo aceite apenas o tipo esperado e rejeite tudo o mais, independentemente do contexto de uso.

CVE-2023-38831HIGHRARLAB WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive. The isEPSS 97.8%KEVCVE-2020-10134MEDIUMBluetooth devices supporting LE and specific BR/EDR implementations are vulnerable to method confusion attacksEPSS 0.7%CVE-2022-1642A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JEPSS 0.6%CVE-2024-4769MEDIUMWhen importing resources using Web Workers, error messages would distinguish the difference between `application/javascript` responses and nEPSS 0.4%CVE-2025-31951HIGHHCL BigFix RunBookAI is affected by a Unvalidated Command Input / Potential Command Smuggling vulnerabilityEPSS 0.2%CVE-2025-30510CRITICALGrowatt Cloud portal Insufficient Type DistinctionEPSS 0.2%CVE-2026-15305MEDIUMTYPO3 CMS - Unrestricted File Upload in Form FrameworkEPSS 0.2%CVE-2025-65960MEDIUMContao is vulnerable to remote code execution in template closuresEPSS 0.2%CVE-2025-32035LOWDNN does not check the contents of a file when uploading filesEPSS 0.2%CVE-2025-47939MEDIUMTYPO3 CMS Vulnerable to Unrestricted File Upload in File Abstraction LayerEPSS 0.2%CVE-2024-45676MEDIUMIBM Cognos Controller file uploadEPSS 0.2%CVE-2023-2866HIGHAdvantech WebAccess Insufficient Type DistinctionEPSS 0.1%CVE-2025-54413HIGHskops' MethodNode can access unexpected object fields through dot notation, leading to arbitrary code execution at load timeEPSS 0.1%CVE-2025-54412HIGHskops' Inconsistent Trusted Type Validation Enables Hidden `operator` Methods ExecutionEPSS 0.1%CVE-2026-41341LOWOpenClaw < 2026.3.31 - Component Interaction Misclassification in Discord ExtensionEPSS 0.1%