PYSEC-2022-192
Vulnerability from pysec - Published: 2022-04-15 19:15 - Updated: 2022-05-17 23:28
VLAI?
Details
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)
Impacted products
| Name | purl | django-mfa3 | pkg:pypi/django-mfa3 |
|---|
Aliases
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "django-mfa3",
"purl": "pkg:pypi/django-mfa3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "32f656e22df120b84bdf010e014bb19bd97971de"
}
],
"repo": "https://github.com/xi/django-mfa3",
"type": "GIT"
},
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.5.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.0",
"0.1.0",
"0.2.0",
"0.2.1",
"0.2.2",
"0.2.3",
"0.2.4",
"0.2.5",
"0.3.0",
"0.4.0"
]
}
],
"aliases": [
"CVE-2022-24857",
"GHSA-3r7g-wrpr-j5g4"
],
"details": "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 (\u003c 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(\u0027admin/login/\u0027, lambda request: redirect(settings.LOGIN_URL)",
"id": "PYSEC-2022-192",
"modified": "2022-05-17T23:28:24.608119Z",
"published": "2022-04-15T19:15:00Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/xi/django-mfa3/blob/main/CHANGES.md#050-2022-04-15"
},
{
"type": "FIX",
"url": "https://github.com/xi/django-mfa3/commit/32f656e22df120b84bdf010e014bb19bd97971de"
},
{
"type": "ADVISORY",
"url": "https://github.com/xi/django-mfa3/security/advisories/GHSA-3r7g-wrpr-j5g4"
}
]
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…