vendor:
N/A
by:
Project Zero
8,3
CVSS
HIGH
Entitlement Spoofing
287
CWE
Product Name: N/A
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017
Entitlement Spoofing
A vulnerability exists in the way userspace daemons check a message sender's entitlements. SecTaskCreateWithAuditToken only uses the pid, not also the pid generation number to build the SecTaskRef. This leaves two avenues for a sender without an entitlement to talk to a service which requires it: a) If the process can exec binaries then they can simply send the message then exec a system binary with that entitlement. b) If the process can't exec a binary (it's in a sandbox for example) then exploitation is still possible if the processes has the ability to crash and force the restart of a binary with that entitlement.
Mitigation:
Ensure that the pid generation number is taken into account when checking entitlements.