Falhas do tipo CWE-187

15 resultados

Comparação incompleta de strings

Ocorre quando a aplicação compara apenas parte de uma string em vez da string completa, permitindo que valores não autorizados passem pela validação. Um atacante pode fornecer uma entrada que coincide com o prefixo esperado mas contém dados maliciosos após esse ponto.

Exemplo

Um sistema valida se a URL começa com 'https://trusted.com' usando apenas os primeiros 19 caracteres, sem verificar o resto. Um atacante envia 'https://trusted.com.attacker.com' e consegue bypass na validação porque passa na comparação parcial.

Como mitigar

Compare sempre a string completa (exato match) ou use métodos robustos como regex com âncoras (^ e $) e bibliotecas de parsing de URLs. Se o prefixo é intencional, valide também o que vem depois dele — defina exatamente quais caracteres são permitidos após o prefixo confiável.

CVE-2024-41110CRITICALMoby authz zero length regressionEPSS 16.5%CVE-2022-31802CRITICALPartial string comparison in CODESYS gateway serverEPSS 1.3%CVE-2024-39742HIGHIBM MQ Container authentication bypassEPSS 0.8%CVE-2026-35031CRITICALJellyfin: Potential RCE via subtitle upload path traversal + .strm chainEPSS 0.8%CVE-2026-62750MEDIUMWindows HTTP Protocol Stack Tampering VulnerabilityEPSS 0.6%CVE-2026-14687MEDIUM666ghj BettaFish InsightEngine search-result Deduplication agent.py _deduplicate_results partial string comparisonEPSS 0.5%CVE-2026-44837MEDIUMview_component: System Test Entry Point Path Check Allows Sibling Directory EscapeEPSS 0.4%CVE-2026-84376MEDIUMAstro: Authorization bypass from missing path-segment boundary check when stripping the configured baseEPSS 0.4%CVE-2026-34785HIGHRack: Local file inclusion in `Rack::Static` via URL Prefix MatchingEPSS 0.4%CVE-2026-55602MEDIUMhttp-proxy-middleware `router` host+path substring matching allows Host-header-driven backend routing bypassEPSS 0.4%CVE-2026-30874LOWOpenWrt procd PATH Environment Variable Filter Bypass via Incorrect String Comparison Leads to Privilege EscalationEPSS 0.3%CVE-2026-87853HIGHSssd: sssd: idp authentication prefix comparison allows cross-user impersonationEPSS 0.3%CVE-2025-23384MEDIUMA vulnerability has been identified in RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) (All versions < V8.2.1), RUGGEDCOM RM1224 LTE(4G) NAEPSS 0.3%CVE-2026-81479MEDIUMDell OpenManage Server Administrator, versions prior to 11.1.0.3, contains a Partial String Comparison vulnerability. A low privileged attacEPSS 0.2%CVE-2026-45692MEDIUMCaddy: Remote Admin Authorization Bypass in `/config` API via Array Index NormalizationEPSS 0.2%