首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Apple macOS 10.13.1 (High Sierra) - Insecure Cron System Local Privilege Escalat
来源:mark.wadham at gmail.com 作者:Wadham 发布时间:2017-12-11  
Recently I was working on an security issue in some other software that has yet to be disclosed which created a rather interesting condition. As a non-root user I was able to write to any file on the system that was not SIP-protected but the resulting file would not be root-owned, even if it previously was.
 
This presented an interesting challenge for privilege escalation - how would you exploit this to obtain root access? The obvious first attempt was the sudoers file but sudo is smart enough not to process it if the file isn't root-owned so that didn't work.
 
I then discovered (after a tip from a friend - thanks pndc!) that the cron system in macOS does not care who the crontab files are owned by. Getting root was a simple case of creating a crontab file at:
 
```
/var/at/tabs/root
```
 
with a 60-second cron line, eg:
 
```
* * * * * chown root:wheel /tmp/payload && chmod 4755 /tmp/payload
```
 
and then waiting for it to execute. It's not clear if this is a macOS-specific issue or a hangover from the BSD-inherited cron system, I suspect the latter.
 
The issue has been reported to Apple so hopefully they will fix it.
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·LabF nfsAxe FTP Client 3.7 - B
·Apple macOS 10.13.1 (High Sier
·Linux Kernel - DCCP Socket Use
·MikroTik 6.40.5 ICMP - Denial
·Claymore Dual ETH + DCR/SC/LBC
·macOS XNU Kernel - Memory Disc
·Microsoft Windows Defender - C
·macOS necp_get_socket_attribut
·LaCie 5big Network 2.2.8 - Com
·macOS getrusage Stack Leak
·Polycom Shell HDX Series Trace
·macOS/iOS - Multiple Kernel Us
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved