CVE-2020-4071: Information Exposure Through Timing Discrepancy
(updated )
A potential timing attack exists on websites where the basic authentication is used or configured, i.e. BASIC_AUTH_LOGIN
and BASIC_AUTH_PASSWORD
is set. Currently, the string comparison between configured credentials and the ones provided by users is performed through a character-by-character string comparison. This enables a possibility that attacker may time the time it takes the server to validate different usernames and password, and use this knowledge to work out the valid credentials. This attack is understood not to be realistic over the Internet. However, it may be achieved from within local networks where the website is hosted, e.g. from inside a data centre where a website’s server is located.
References
- github.com/advisories/GHSA-m38j-pmg3-v5x5
- github.com/pypa/advisory-database/tree/main/vulns/django-basic-auth-ip-whitelist/PYSEC-2020-37.yaml
- github.com/tm-kn/django-basic-auth-ip-whitelist
- github.com/tm-kn/django-basic-auth-ip-whitelist/commit/effe05ed1ed9e1ccc675a65b69d36217e5c5dfc6
- github.com/tm-kn/django-basic-auth-ip-whitelist/security/advisories/GHSA-m38j-pmg3-v5x5
- groups.google.com/forum/
- nvd.nist.gov/vuln/detail/CVE-2020-4071
Detect and mitigate CVE-2020-4071 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →