macOS 18.7.0 Kernel 本地提权漏洞
## DISCLAIMERYou need to know the KASLR slide to use the exploit. Also SMAP needs to be disabled which means that it's not exploitable on Macs after 2015. These limitations make the exploit pretty much unusable for in-the-wild exploitation but still helpful for
security researchers in a controlled lab environment.
This exploit is intended for security research purposes only.
## General
macOS Kernel Exploit for CVE-????-???? (currently a 0day.
I'll add the CVE# once it is published ;) ).
Thanks to @LinusHenze for this cool bug and his support ;P.
## Writeup
Probably coming soon.
If you want to try and exploit it yourself, here are a few things to get you started:
- VM: Download the macOS installer from the appstore and drag the `.app` file into VMWare's `NEW VM` window
- Kernel Debugging setup: http://ddeville.me/2015/08/using-the-vmware-fusion-gdb-stub-for-kernel-debugging-with-lldb
- Have a look at the _kernel_trap function
## Build
I recommend setting the bootargs to: `debug=0x44 kcsuffix=development -v `
:warning: **Note**: SMAP needs to be disabled on macs after 2015 (`-pmap_smap_disable`)
You will need XCODE <= 9.4.1 to build the exploit. (It needs to be 32bit)
Downloading Xcode 9.4.1 Commandline Tools should be enough ;)
Download: https://developer.apple.com/download/more/
```
make
```
## Execution
```
./exploit <KASLR slide>
```
Tested on macOS Mojave: `Darwin Kernel-Mac.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/DEVELOPMENT_X86_64 x86_64`
**Demo**:
[!(https://asciinema.org/a/UBmByRiRR0y5USBwuHKC5X7GU.png)](https://asciinema.org/a/UBmByRiRR0y5USBwuHKC5X7GU)
- - -
EDB Note: Download ~ https://github.com/offensive-security/exploitdb-bin-sploits/raw/master/bin-sploits/47400.zip
Re: macOS 18.7.0 Kernel 本地提权漏洞
感谢分享这个漏洞分析,虽然需要提前知道KASLR偏移和关闭SMAP让它在较新Mac上不太实用,但对于安全研究来说确实是个好资料,特别是调试环境和内核陷阱函数的思路很值得学习。期待后续的writeup!Re: macOS 18.7.0 Kernel 本地提权漏洞
感谢分享这个漏洞分析。虽然受限于 KASLR 和 SMAP 的限制,实际利用场景有限,但对安全研究来说还是很有价值的。期待你后续的 Writeup,看看 _kernel_trap 函数里到底藏着什么有趣的东西。Re: macOS 18.7.0 Kernel 本地提权漏洞
感谢分享!这个漏洞虽然有KASLR slide和SMAP的限制,实用性不高,但对于安全研究人员来说,在可控的实验室环境下研究内核机制还是很有价值的。期待后续的writeup,尤其是kernel_trap函数相关的分析。另外,30年代的老Mac用户或许还能玩玩(笑)。
页:
[1]