目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2019-8561 PoC — Apple macOS Mojave PackageKit组件输入验证错误漏洞

来源
关联漏洞
标题: Apple macOS Mojave PackageKit组件输入验证错误漏洞 (CVE-2019-8561)
Description:Apple macOS Mojave是美国苹果(Apple)公司的一套专为Mac计算机所开发的专用操作系统。PackageKit是其中的一个软件包管理组件。 Apple macOS Mojave 10.14.4之前版本中的PackageKit组件存在输入验证错误漏洞。攻击者可借助恶意的应用程序利用该漏洞提升权限。
Description
Proof of concept exploit for CVE-2019-8561 discovered by @jbradley89 
介绍
# CVE-2019-8561

Proof of concept exploit for CVE-2019-8561 discovered by Jaron Bradley ([@jbradley89](https://twitter.com/jbradley89))  (Patched in macOS 10.14.4). This script exploits a TOCTOU bug in `installer` which enables code execution as root.

See Jaron's Objective By the Sea v2 talk "[Bad Things in Small Packages](https://www.youtube.com/watch?v=5nOxznrOK48)" where he demonstrates getting r00t and bypassing SIP.

(**N.B All scripts other than `gpg_poc` are half finished and likely don't work in their current state. Published for sake of completeness**)

My accompanying blog post "[CVE-2019-8561 Proof of Concept Exploit](https://0xmachos.com/2021-04-30-CVE-2019-8561-PoC/)".

# [gpg_poc](https://github.com/0xmachos/CVE-2019-8561/blob/master/gpg_poc)

Monitors`$HOME/Downloads` for a GPG Suite DMG. When it finds one it converts the DMG from read only to RW then resizes it to 60MB. 

Once the installer starts it expands the package, modifies the `preinstall` script to create `/var/test` via `touch` then flattens it in place of the original package. 

The modified package contents will be used by installer however the UI will still indicate that the package is correctly code signed.

Tested on:
* 10.14.2

文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →