PT-2021-14491 · Unknown+2 · Django-Rest-Registration+2

Martinmo

·

Published

2021-04-01

·

Updated

2024-07-12

·

CVE-2021-21416

CVSS v3.1

3.7

Low

VectorAV:L/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions django-registration versions prior to 3.1.2
Description The django-registration package has an issue where the base user-account registration view does not properly apply filters to sensitive data. This can result in sensitive data being included in error reports rather than being removed automatically by Django. For this to occur, a site must be using django-registration prior to 3.1.2, have detailed error reports enabled, and experience a server-side error during an account registration attempt. Under these conditions, recipients of the detailed error report may see all submitted data, including the user's proposed credentials, such as a password.
Recommendations For django-registration versions prior to 3.1.2, update to version 3.1.2 or later, which properly applies Django's sensitive post parameters() decorator to the base user-registration view. As a temporary workaround, users who cannot upgrade quickly can apply the django.views.decorators.debug.sensitive post parameters() decorator to their own registration views by using Django's method decorator() helper on the dispatch() method of the appropriate RegistrationView class.

Fix

Generation of Error Message Containing Sensitive Information

Weakness Enumeration

Related Identifiers

CVE-2021-21416
GHSA-58C7-PX5V-82HH
MGASA-2022-0178
OPENSUSE-SU-2021:0588-1
OPENSUSE-SU-2021:0597-1
OPENSUSE-SU-2021_0588-1
OPENSUSE-SU-2024:11226-1
OPENSUSE-SU-2024:14138-1
PYSEC-2021-11

Affected Products

Debian
Suse
Django-Rest-Registration