{"id":"CVE-2022-24857","published":"2022-04-15T18:50:11Z","modified":"2025-04-23T18:38:55Z","title":"Multi factor authentication bypass in django-mfa3","vendor":"xi","product":"django-mfa3","tier":"tail","description":{"text":"django-mfa3 is a library that implements multi factor authentication for the django web framework. It achieves this by modifying the regular login view. Django however has a second login view for its admin area. This second login view was not modified, so the multi factor authentication can be bypassed. Users are affected if they have activated both django-mfa3 (< 0.5.0) and django.contrib.admin and have not taken any other measures to prevent users from accessing the admin login view. The issue has been fixed in django-mfa3 0.5.0. It is possible to work around the issue by overwriting 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)","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01167,"percentile":0.68106,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/xi/django-mfa3/security/advisories/GHSA-3r7g-wrpr-j5g4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xi/django-mfa3/commit/32f656e22df120b84bdf010e014bb19bd97971de","tags":["x_refsource_MISC"]},{"url":"https://github.com/xi/django-mfa3/blob/main/CHANGES.md#050-2022-04-15","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0003/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":13.62},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"xi","affectedVersions":[{"vendor":"xi","product":"django-mfa3","versions":["< 0.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:54:10.990167Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"django-mfa3","vulnerableRanges":["<0.5.0"],"patched":["0.5.0"],"from":["GHSA-3r7g-wrpr-j5g4","PYSEC-2022-192"],"provenance":"source"}],"summary":{"text":"The django-mfa3 library, which adds multi-factor authentication to Django web applications, can be bypassed because its modifications cover only the regular login view and not the separate login view used by Django's admin area. An attacker with network access and a valid username and password, where the victim takes an action such as clicking a link, can reach the unprotected admin login path to sign in without completing the second factor; this affects deployments running django-mfa3 before 0.5.0 alongside django.contrib.admin that have not otherwise restricted access to that login view.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:11Z"},"euvd":{"id":"EUVD-2022-0081","exploited":false,"provenance":"source"}}