Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. django-basic-auth-ip-whitelist
  4. ›
  5. CVE-2020-4071

CVE-2020-4071: Information Exposure Through Timing Discrepancy

June 23, 2020 (updated November 18, 2024)

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

Code Behaviors & Features

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 →

Affected versions

All versions before 0.3.4

Fixed versions

  • 0.3.4

Solution

Upgrade to version 0.3.4 or above.

Impact 2.4 LOW

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

pypi/django-basic-auth-ip-whitelist/CVE-2020-4071.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.