Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2020-4071— Timing attack on django-basic-auth-ip-whitelist

Quick assessment

Affected
tm-kn django-basic-auth-ip-whitelist
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

django-basic-auth-ip-whitelist是一款支持Django框架设置基本身份验证和IP白名单的软件包。 django-basic-auth-ip-whitelist 0.3.4之前版本中存在安全漏洞。攻击者可利用该漏洞获取有效凭证。

CVSS 2.2 · Low EPSS 0.36% · P29
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2020-4071

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Timing attack on django-basic-auth-ip-whitelist
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
通过时间差异性导致的信息暴露
Source: CVE Program / CVE List V5
Vulnerability Title
django-basic-auth-ip-whitelist 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
django-basic-auth-ip-whitelist是一款支持Django框架设置基本身份验证和IP白名单的软件包。 django-basic-auth-ip-whitelist 0.3.4之前版本中存在安全漏洞。攻击者可利用该漏洞获取有效凭证。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
tm-kn django-basic-auth-ip-whitelist < 0.3.4 -

II. Public POCs for CVE-2020-4071

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2020-4071

登录查看更多情报信息。

Vendor Advisories for CVE-2020-4071 (1)

Other References for CVE-2020-4071 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2020-4071

No comments yet


Leave a comment