| Reporter | Title | Published | Views | Family All 16 |
|---|---|---|---|---|
| MacOS 10.12 - 'task_t' Privilege Escalation Exploit | 1 Nov 201600:00 | – | zdt | |
| Mac OS X < 10.11.6 Multiple Vulnerabilities | 8 Sep 201600:00 | – | nessus | |
| Mac OS X 10.11.x < 10.11.6 Multiple Vulnerabilities | 29 Jul 201600:00 | – | nessus | |
| Mac OS X 10.11.x < 10.11.6 Multiple Vulnerabilities | 21 Jul 201600:00 | – | nessus | |
| About the security content of OS X El Capitan v10.11.6 and Security Update 2016-004 | 18 Jul 201600:00 | – | apple | |
| About the security content of OS X El Capitan v10.11.6 and Security Update 2016-004 - Apple Support | 30 Nov 201710:28 | – | apple | |
| The vulnerability of the Mac OS X operating system, which allows a hacker to increase their privileges | 19 Sep 201600:00 | – | bdu_fstec | |
| CVE-2016-4625 | 31 Oct 201600:00 | – | circl | |
| Apple OS X El Capitan IOSurface Memory Misreference Vulnerability | 28 Jul 201600:00 | – | cnvd | |
| CVE-2016-4625 | 22 Jul 201601:00 | – | cve |
Source: https://bugs.chromium.org/p/project-zero/issues/detail?id=831
IOSurfaceRootUserClient stores a task struct pointer (passed in via IOServiceOpen) in the field at +0xf0 without taking a reference.
By killing the corrisponding task we can free this pointer leaving the user client with a dangling pointer. We can get this pointer used
by calling the create_surface_fast_path external method which will try to read and use the memory map off of the free'd task struct.
This bug could be leveraged for kernel memory corruption and is reachable from interesting sandboxes including safari and chrome.
build: clang -o surfaceroot_uaf surfaceroot_uaf.c -framework IOKit
You should set gzalloc_min=1024 gzalloc_max=2048 or similar to actually fault on the UaF - otherwise you might see some weird panics!
tested on OS X 10.11.5 (15F34) on MacBookAir5,2
#####################################
another PoC for "task_t considered harmful"
since 10.11.6 blocks us from creating userclients with other task's task ports
this time we create an IOSurface in the child and send back a send right to that
IOSurface to the parent (rather than sending the child's task port.)
The child then execs a suid-root binary which blocks on stderr and the parent
creates an IOSurface which maps any (writable?) page of the euid-0 process into theirs.
Overwrite a function pointer and win.
No race conditions because the task struct pointer is on the kernel heap, not the stack.
Proofs of Concept:
https://github.com/offensive-security/exploit-database-bin-sploits/raw/master/sploits/40653.zip
# 0day.today [2018-01-09] #Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation