
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-3116 is a security vulnerability discovered in proxy.py version 2.3.0, a feature-rich HTTP proxy server written in Python. The vulnerability was discovered on January 9, 2021, and affects the basic authentication mechanism of the proxy server. The issue was disclosed privately to the developers and subsequently fixed in version 2.3.1 (Cardaci Advisory).
The vulnerability exists in the before_upstream_connection function within proxy/http/proxy/auth.py. The issue stems from a logic bug where incorrect boolean operators (and instead of or) were used in the authentication validation code. This implementation error allows bypass of the proxy authentication mechanism because the condition check uses AND operators instead of OR operators, meaning that if any one of the conditions is false, the authentication check would pass (Cardaci Advisory, GitHub Fix).
The vulnerability allows attackers to bypass the proxy authentication mechanism completely. Any valid header with any credentials would work, effectively nullifying the authentication protection. This means unauthorized users could access the proxy server regardless of the configured credentials (Cardaci Advisory).
The vulnerability was fixed in proxy.py version 2.3.1. The fix involved changing the logical operators from 'and' to 'or' in the authentication validation code. Users should upgrade to version 2.3.1 or later to address this security issue (GitHub Fix).
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.
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."