Exploit database

Vulnerability

CVE-2020-9839

Vulnerability details

Score
7.0
Severity
high

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Description

A race condition was addressed with improved state handling. This issue is fixed in iOS 13.5 and iPadOS 13.5, macOS Catalina 10.15.5, tvOS 13.4.5, watchOS 6.2.5. An application may be able to gain elevated privileges.

CVE Program

Showing saved CVE details. Refresh is temporarily unavailable.

Exploit source choices

1 source
macOS cfprefsd Arbitrary File Write Local Privilege Escalation
MSF-osx--local--cfprefsd_race_conditionMetasploitOSX / remotePreferred

This module exploits an arbitrary file write in cfprefsd on macOS <= 10.15.4 in order to run a payload as root. The CFPreferencesSetAppValue function, which is reachable from most unsandboxed processes, can be exploited with a race condition in order to overwrite an arbitrary file as root. By overwriting /etc/pam.d/login a user can then login as root with the `login root` command without a password.

2020-03-18cfprefsd_race_condition.rb