Skip to content

← Public intelligence

PyPI package

django-mfa3

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.5PyPIAmendedPublished

    Improper Authentication in django-mfa3

    CVE-2022-24857 · GHSA-3r7g-wrpr-j5g4

    Affected
    • PyPI django-mfa3 < 0.5.0
    Fixed in
    0.5.0· Vendor fix available
    Issue
    Impact 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. You are affected if you 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. Patches The issue has been fixed in django-mfa3 0.5.0. Workarounds 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.LOGINURL) References - django-mfa3 changelog

    Recommended action: Upgrade to 0.5.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →