Authentication Bypass Affecting django-mfa3 package, versions [,0.5.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DJANGOMFA3-2766456
  • published17 Apr 2022
  • disclosed17 Apr 2022
  • creditUnknown

Introduced: 17 Apr 2022

CVE-2022-24857  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade django-mfa3 to version 0.5.0 or higher.

Overview

django-mfa3 is a multi factor authentication for django

Affected versions of this package are vulnerable to Authentication Bypass by not modifying the admin login view in order for the multi-factor authentication to work.

Workaround

Overwrite the admin login route, e.g. by adding the following URL definition before the admin routes:

url('admin/login/', lambda request: redirect(settings.LOGIN_URL)

CVSS Scores

version 3.1