Read the docs
TI-2020-03552 Aliases CVE-2020-4071GHSA-m38j-pmg3-v5x5

Timing attack on django-basic-auth-ip-whitelist

Priority LOW 12CWE-208Published · Updated

Key facts

Attack vector
Physical
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-208.

Summary

In django-basic-auth-ip-whitelist before 0.3.4, 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. Sites protected by IP address whitelisting only are unaffected by this vulnerability. This vulnerability has been fixed on version 0.3.4 of django-basic-auth-ip-whitelist. Update to version 0.3.4 as soon as possible and change basic authentication username and password configured on a Django project using this package. A workaround without upgrading to version 0.3.4 is to stop using basic authentication and use the IP whitelisting component only. It can be achieved by not setting BASIC_AUTH_LOGIN and BASIC_AUTH_PASSWORD in Django project settings.

Why it matters now

EPSS 0.00358 29th percentileScored 2026-11-07
Fix Fixed django-basic-auth-ip-whitelist (tm-kn): 0.3.4django-basic-auth-ip-whitelist (PyPI): 0.3.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
tm-kndjango-basic-auth-ip-whitelistbefore 0.3.40.3.4Patch availableCNA
—django-basic-auth-ip-whitelist (PyPI)before 0.3.40.3.4Patch availableGHSA-m38j-pmg3-v5x5
  • django-basic-auth-ip-whitelist Vendortm-kn Affected before 0.3.4 Fixed in 0.3.4 Patch available CNA
  • django-basic-auth-ip-whitelist (PyPI) Vendor— Affected before 0.3.4 Fixed in 0.3.4 Patch available GHSA-m38j-pmg3-v5x5

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:django-basic-auth-ip-whitelist_project:django-basic-auth-ip-whitelist:*:*:*:*:*:*:*:*before 0.3.4VulnerableDjango-basic-auth-ip-whitelist Project

Remediation

  • Fix · CNA django-basic-auth-ip-whitelist (tm-kn) Fixed in 0.3.4
  • Fix · GHSA-m38j-pmg3-v5x5 django-basic-auth-ip-whitelist (PyPI) Fixed in 0.3.4 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-4071
  2. 2026-10-03 Alias added: GHSA-m38j-pmg3-v5x5

References

Sources