CVE-2025-50946: Map Allowlist Prefix Bypass

A map-based allowlist validation or authorization check was bypassed using a broad string prefix match (`strings.HasPrefix`). If this logic is used to filter incoming parameters (e.g., HTTP arguments), attackers could supply undeclared inputs that bypass validation simply by matching the expected prefix. This unvalidated input can lead to critical vulnerabil

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2025-50946-map-allowlist-prefix-bypass --engine opengrep

Description

A map-based allowlist validation or authorization check was bypassed using a broad string prefix match (`strings.HasPrefix`). If this logic is used to filter incoming parameters (e.g., HTTP arguments), attackers could supply undeclared inputs that bypass validation simply by matching the expected prefix. This unvalidated input can lead to critical vulnerabil