
Cloud Vulnerability DB
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
CVE-2019-25211 affects the parseWildcardRules function in Gin-Gonic CORS middleware before version 1.6.0. The vulnerability involves mishandling of wildcard characters at the end of origin strings, where patterns like https://example.com/ would incorrectly match unintended domains like https://example.community/ (NVD).
The vulnerability exists in the parseWildcardRules function where if a wildcard is at the end of the origin string, the character right before the wildcard is incorrectly cut off. This occurs due to a bug in the substring operation where o[:i-1] is used instead of o[:i] when processing the wildcard at the end of the string. This implementation error leads to broader pattern matching than intended (GitHub PR).
The vulnerability can lead to security bypass where malicious domains could be incorrectly validated as allowed origins. For example, when configuring https://example.* as an allowed origin, the middleware would incorrectly match unauthorized domains like https://example-without-a-dot.com or https://example.attacker.com (GitHub PR).
The issue has been fixed in version 1.6.0 of the Gin-Gonic CORS middleware. Users should upgrade to this version or later to receive the fix. The fix corrects the substring operation to properly handle wildcards at the end of origin strings (GitHub Release).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
A comprehensive threat intelligence database of cloud security incidents, actors, tools and techniques
A step-by-step framework for modeling and improving SaaS and PaaS tenant isolation
Get a personalized demo
“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
“We know that if Wiz identifies something as critical, it actually is.”