abhinavsingh/proxy.py · Security
Logic error in authentication in proxy.py
- GHSA ID
- GHSA-cmc7-mfmr-xqrx
- CVE ID
- CVE-2021-3116
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v4
- 8.7 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Description
before_upstream_connection in AuthPlugin in http/proxy/auth.py in proxy.py before 2.3.1 accepts incorrect Proxy-Authorization header data because of a boolean confusion (and versus or).
CWEs
- CWE-287 · Improper Authentication
- CWE-480 · Use of Incorrect Operator
- CWE-697 · Incorrect Comparison
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3116 ↗
- https://pypi.org/project/proxy.py/2.3.1/#history ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/proxy-py/PYSEC-2021-46.yaml ↗
- https://github.com/abhinavsingh/proxy.py/pull/482 ↗
- https://github.com/abhinavsingh/proxy.py/commit/bff171ec26d826ae1d22d2466eaf9d8bdbf059d3 ↗
- https://cardaci.xyz/advisories/2021/01/10/proxy.py-2.3.0-broken-basic-authentication ↗
- https://github.com/abhinavsingh/proxy.py/pull/482/commits/9b00093288237f5073c403f2c4f62acfdfa8ed46 ↗
- https://github.com/advisories/GHSA-cmc7-mfmr-xqrx ↗