请选择 进入手机版 | 继续访问电脑版
查看: 774|回复: 0

[Linux/Mac] macOS 18.7.0 Kernel 本地提权漏洞

[复制链接]
  • TA的每日心情

    2 小时前
  • 签到天数: 773 天

    [LV.10]以坛为家III

    发表于 2019-9-24 21:57:43 | 显示全部楼层 |阅读模式
    [AppleScript] 纯文本查看 复制代码
    ## DISCLAIMER
    You 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: [url]http://ddeville.me/2015/08/using-the-vmware-fusion-gdb-stub-for-kernel-debugging-with-lldb[/url]
    - 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: [url]https://developer.apple.com/download/more/[/url]
     
    ```
    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**:
     
    [![asciicast]([url]https://asciinema.org/a/UBmByRiRR0y5USBwuHKC5X7GU.png[/url])]([url]https://asciinema.org/a/UBmByRiRR0y5USBwuHKC5X7GU[/url])
     
     
    - - - 
     
    EDB Note: Download ~ [url]https://github.com/offensive-security/exploitdb-bin-sploits/raw/master/bin-sploits/47400.zip[/url]
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表