ID CVE-2019-19118
Summary Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)
References
Vulnerable Configurations
  • cpe:2.3:a:djangoproject:django:2.1:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1:a1:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1:a1:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1:b1:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1:b1:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1:rc1:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1:rc1:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.3:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.3:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.4:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.4:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.5:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.5:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.6:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.6:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.7:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.7:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.8:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.8:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.9:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.9:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.10:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.10:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.11:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.11:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.12:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.12:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.13:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.13:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.1.14:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.1.14:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.4:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.4:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:djangoproject:django:2.2.7:*:*:*:*:*:*:*
    cpe:2.3:a:djangoproject:django:2.2.7:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
    cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*
CVSS
Base: 4.0 (as of 01-05-2020 - 02:15)
Impact:
Exploitability:
CWE CWE-276
CAPEC
  • Web Logs Tampering
    Web Logs Tampering attacks involve an attacker injecting, deleting or otherwise tampering with the contents of web logs typically for the purposes of masking other malicious behavior. Additionally, writing malicious data to log files may target jobs, filters, reports, and other agents that process the logs in an asynchronous attack pattern. This pattern of attack is similar to "Log Injection-Tampering-Forging" except that in this case, the attack is targeting the logs of the web server and not the application.
  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by an authorization framework. This framework maps Access Control Lists (ACLs) to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application, or can run queries for data that they otherwise not supposed to.
  • Directory Indexing
    An adversary crafts a request to a target that results in the target listing/indexing the content of a directory as output. One common method of triggering directory contents as output is to construct a request containing a path that terminates in a directory name rather than a file name since many applications are configured to provide a list of the directory's contents when such a request is received. An adversary can use this to explore the directory tree on a target as well as learn the names of files. This can often end up revealing test files, backup files, temporary files, hidden files, configuration files, user accounts, script contents, as well as naming conventions, all of which can be used by an attacker to mount additional attacks.
Access
VectorComplexityAuthentication
NETWORK LOW SINGLE
Impact
ConfidentialityIntegrityAvailability
NONE PARTIAL NONE
cvss-vector via4 AV:N/AC:L/Au:S/C:N/I:P/A:N
refmap via4
confirm
fedora FEDORA-2019-adc8990386
gentoo GLSA-202004-17
misc
mlist [oss-security] 20191202 Django 2.2.8 and 2.1.15: CVE-2019-19118: Privilege escalation in the Django admin.
Last major update 01-05-2020 - 02:15
Published 02-12-2019 - 14:15
Last modified 01-05-2020 - 02:15
Back to Top