CVE Vulnerabilities

CVE-2017-15131

Improper Access Control

Published: Jan 09, 2018 | Modified: Feb 12, 2023
CVSS 3.x
7.8
HIGH
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
4.6 MEDIUM
AV:L/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
3.3 LOW
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Ubuntu
LOW

It was found that system umask policy is not being honored when creating XDG user directories, since Xsession sources xdg-user-dirs.sh before setting umask policy. This only affects xdg-user-dirs before 0.15.5 as shipped with Red Hat Enterprise Linux.

Weakness

The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.

Affected Software

Name Vendor Start Version End Version
Xdg-user-dirs Freedesktop * 0.15.5 (excluding)
Red Hat Enterprise Linux 7 RedHat xdg-user-dirs-0:0.15-5.el7 *
Xdg-user-dirs Ubuntu artful *
Xdg-user-dirs Ubuntu cosmic *
Xdg-user-dirs Ubuntu disco *
Xdg-user-dirs Ubuntu eoan *
Xdg-user-dirs Ubuntu groovy *
Xdg-user-dirs Ubuntu hirsute *
Xdg-user-dirs Ubuntu trusty *
Xdg-user-dirs Ubuntu xenial *
Xdg-user-dirs Ubuntu zesty *

Extended Description

Access control involves the use of several protection mechanisms such as:

When any mechanism is not applied or otherwise fails, attackers can compromise the security of the product by gaining privileges, reading sensitive information, executing commands, evading detection, etc. There are two distinct behaviors that can introduce access control weaknesses:

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References