查看: 22925|回复: 0

macOS 18.7.0 Kernel 本地提权漏洞

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

    3 天前
  • 签到天数: 1563 天

    [LV.Master]伴坛终老

    发表于 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]
    回复

    使用道具 举报

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

    本版积分规则

    指导单位

    江苏省公安厅

    江苏省通信管理局

    浙江省台州刑侦支队

    DEFCON GROUP 86025

    旗下站点

    邮箱系统

    应急响应中心

    红盟安全

    联系我们

    官方QQ群:112851260

    官方邮箱:security#ihonker.org(#改成@)

    官方核心成员

    Archiver|手机版|小黑屋| ( 苏ICP备2021031567号 )

    GMT+8, 2024-5-4 08:31 , Processed in 0.042549 second(s), 12 queries , Gzip On, MemCache On.

    Powered by ihonker.com

    Copyright © 2015-现在.

  • 返回顶部