¡¾Â©¶´Í¨¸æ¡¿Microsoft MSDTÈÎÒâ´úÂëÖ´ÐЩ¶´£¨CVE-2022-30190£©

Ðû²¼Ê±¼ä 2022-05-31

0x00 ©¶´¸ÅÊö

CVE   ID

CVE-2022-30190

·¢ÏÖʱ¼ä

2022-05-30

Àà    ÐÍ

´úÂëÖ´ÐÐ

µÈ    ¼¶

¸ßΣ

Ô¶³ÌÀûÓÃ


Ó°Ï췶Χ


¹¥»÷ÅÓ´ó¶È

µÍ

Óû§½»»¥

ÊÇ

PoC/EXP

ÒѹûÈ»

ÔÚÒ°ÀûÓÃ

ÊÇ

 

0x01 ©¶´ÏêÇé

5ÔÂ30ÈÕ£¬Î¢ÈíÐû²¼Äþ¾²Í¨¸æ£¬Åû¶ÁË Microsoft MSDTÖеÄÈÎÒâ´úÂëÖ´ÐЩ¶´£¨CVE-2022-30190£©£¬¸Ã©¶´µÄCVSSÆÀ·ÖΪ7.8¡£Ä¿Ç°¸Ã©¶´ÒѾ­¹ûÈ»Åû¶£¬ÇÒÒѼì²âµ½ÔÚÒ°ÀûÓá£

MSDT£¨Microsoft Support Diagnostics Tool£¬Î¢ÈíÖ§³ÖÕï¶Ï¹¤¾ß£©ÊÇÒ»ÖÖʵÓ÷¨Ê½£¬ÓÃÓÚÅųý¹ÊÕϲ¢ÊÕ¼¯Õï¶ÏÊý¾ÝÒÔ¹©×¨ÒµÈËÔ±·ÖÎöºÍ½â¾öÎÊÌâ¡£

´Ó Word µÈµ÷ÓÃÓ¦Ó÷¨Ê½Ê¹Óà URL ЭÒéµ÷Óà MSDT ʱ´æÔÚ´úÂëÖ´ÐЩ¶´£¬ÀÖ³ÉÀûÓøÃ©¶´¿ÉÒÔʹÓõ÷ÓÃÓ¦Ó÷¨Ê½µÄȨÏÞÔËÐÐÈÎÒâ´úÂ룬²¢ÔÚÓû§È¨ÏÞÔÊÐíµÄ·¶Î§ÄÚ°²×°·¨Ê½£¬¼ì²ì¡¢¸ü¸Ä»òɾ³ýÊý¾Ý£¬»ò´´½¨ÐÂÕË»§¡£Â©¶´¸´ÏÖÈçÏ£º

image.png

¸Ã©¶´ÊÇÁ¥ÊôÓÚ°×¶íÂÞ˹µÄIPµØÖ·ÉÏ´«µ½ VirusTotalµÄ¶ñÒâWord ÎĵµÖмì²âµ½µÄ¡£¶ñÒâÎļþͨ¹ýÀûÓà Word µÄÔ¶³ÌÄ£°å¹¦Ð§´Ó·þÎñÆ÷»ñÈ¡ HTML Îļþ£¬È»ºóʹÓá°ms-msdt://¡±URI Ö´ÐÐ PowerShell ´úÂë¡£¼´Ê¹½ûÓÃÁ˺꣬Microsoft Word Ò²»áͨ¹ý msdtÖ´ÐдúÂë¡£´ËÍ⣬µ±¶ñÒâÎļþÉú´æÎªRTF¸ñʽʱ£¬ÉõÖÁÎÞÐè´ò¿ªÎļþ£¬Í¨¹ý×ÊÔ´¹ÜÀíÆ÷ÖеÄÔ¤ÀÀÑ¡Ï¼´¿ÉÔÚÄ¿±êϵͳÉÏÖ´ÐÐÈÎÒâ´úÂë¡£

 

Ó°Ï췶Χ

 Windows Server 2012 R2 (Server Core installation)

Windows Server 2012 R2

Windows Server 2012 (Server Core installation)

Windows Server 2012

Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation)

Windows Server 2008 R2 for x64-based Systems Service Pack 1

Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation)

Windows Server 2008 for x64-based Systems Service Pack 2

Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation)

Windows Server 2008 for 32-bit Systems Service Pack 2

Windows RT 8.1

Windows 8.1 for x64-based systems

Windows 8.1 for 32-bit systems

Windows 7 for x64-based Systems Service Pack 1

Windows 7 for 32-bit Systems Service Pack 1

Windows Server 2016 (Server Core installation)

Windows Server 2016

Windows 10 Version 1607 for x64-based Systems

Windows 10 Version 1607 for 32-bit Systems

Windows 10 for x64-based Systems

Windows 10 for 32-bit Systems

Windows 10 Version 21H2 for x64-based Systems

Windows 10 Version 21H2 for ARM64-based Systems

Windows 10 Version 21H2 for 32-bit Systems

Windows 11 for ARM64-based Systems

Windows 11 for x64-based Systems

Windows Server, version 20H2 (Server Core Installation)

Windows 10 Version 20H2 for ARM64-based Systems

Windows 10 Version 20H2 for 32-bit Systems

Windows 10 Version 20H2 for x64-based Systems

Windows Server 2022 Azure Edition Core Hotpatch

Windows Server 2022 (Server Core installation)

Windows Server 2022

Windows 10 Version 21H1 for 32-bit Systems

Windows 10 Version 21H1 for ARM64-based Systems

Windows 10 Version 21H1 for x64-based Systems

Windows Server 2019 (Server Core installation)

Windows Server 2019

Windows 10 Version 1809 for ARM64-based Systems

Windows 10 Version 1809 for x64-based Systems

Windows 10 Version 1809 for 32-bit Systems

 

0x02 Äþ¾²½¨Òé

΢ÈíÄþ¾²ÏìÓ¦ÖÐÐÄÒѾ­Ðû²¼ÁË´Ë©¶´µÄÖ¸ÄÏ£¬ÊÜÓ°ÏìÓû§¿ÉÒÔÑ¡Ôñ½ûÓÃMSDT URLЭÒé»òÓ¦Ó÷ǹٷ½²¹¶¡£º

½ûÓÃMSDT URLЭÒé

½ûÓà MSDT URL ЭÒé¿É·ÀÖ¹¹ÊÕÏÅųý·¨Ê½×÷ΪÁ´½ÓÆô¶¯£¬°üÂÞÕû¸ö²Ù×÷ϵͳµÄÁ´½Ó¡£µ«ÈÔÈ»¿ÉÒÔʹÓÃÆäËü·½Ê½·ÃÎʹÊÕÏÅųý·¨Ê½¡£

1.ÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐÃüÁîÌáʾ·û¡£

2.Òª±¸·Ý×¢²á±íÏÇëÖ´ÐÐÃüÁî¡°reg export HKEY_CLASSES_ROOT\ms-msdt filename¡°¡£

3.Ö´ÐÐÃüÁî¡°reg delete HKEY_CLASSES_ROOT\ms-msdt /f¡±¡£

È¡Ïû£º

1.ÒÔ¹ÜÀíÔ±Éí·ÝÔËÐÐÃüÁîÌáʾ·û¡£

2.Òª»Ö¸´±¸·Ý×¢²á±íÏÇëÖ´ÐÐÃüÁî¡°reg import filename¡±¡£

´ËÍ⣬Microsoft Defender ·À²¡¶¾Èí¼þʹÓüì²â°æ±¾1.367.719.0?»ò¸ü¸ß°æ±¾Îª¿ÉÄܵÄ©¶´ÀûÓÃÌṩ¼ì²âºÍ±£»¤£»Microsoft Defender for Endpoint Ϊ¿Í»§Ìṩ¼ì²âºÍ¾¯±¨£»Microsoft 365 Defender ÃÅ»§ÖеÄÒÔϾ¯±¨±êÌâ¿ÉÒÔÖ¸Ê¾ÍøÂçÉϵÄÍþв»î¶¯£º

l  Office Ó¦Ó÷¨Ê½µÄ¿ÉÒÉÐÐΪ

l  Msdt.exe µÄ¿ÉÒÉÐÐΪ

²Î¿¼Á´½Ó£º

https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/

 

·Ç¹Ù·½²¹¶¡

0patch ΢²¹¶¡·þÎñÖ÷ÒªÓÃÓÚÔÚ¹Ù·½ÐÞ¸´¿ÉÓÃ֮ǰ±£»¤ÏµÍ³¡£0patchÒѾ­Õë¶Ô´Ë©¶´ÎªÄ³Ð©Windows°æ±¾Ðû²¼ÁËÃâ·ÑµÄ΢²¹¶¡£¬µ«¸Ã²¹¶¡²»»áÍêÈ«½ûÓÃMSDTЭÒé´¦Ö÷¨Ê½£¬¶øÖ»ÊÇÔö¼ÓÁ˶ÔÓû§ÌṩµÄ·¾¶µÄÇåÀí¡£×¢Ò⣬ҪÏÂÔØ´Ë΢²¹¶¡£¬ÐèҪע²á0patchÕÊ»§²¢°²×°0patch agent¡£¸Ã΢²¹¶¡ÊÊÓÃÓÚÒÔÏÂWindows°æ±¾£º

Windows 11 v21H2

Windows 10 v21H2

Windows 10 v21H1

Windows 10 v20H2

Windows 10 v2004

Windows 10 v1909

Windows 10 v1903

Windows 10 v1809

Windows 10 v1803

Windows 7

Windows Server 2008 R2

ÏÂÔØÁ´½Ó£º

https://blog.0patch.com/2022/06/free-micropatches-for-follina-microsoft.html

 

ÆäËü½¨Òé

1.½¨Ò鹨±ÕWindows×ÊÔ´¹ÜÀíÆ÷ÖеÄÔ¤ÀÀ´°¸ñ£¬ÒÔÏû³ýËü×÷ΪԤÀÀ¶ñÒâÎļþʱ¿ÉÀûÓõĹ¥»÷ý½é¡£

2. Èç¹ûÄúʹÓÃMicrosoft DefenderµÄ Attack Surface Reduction(ASR)¹æÔò£¬Ôò¿ÉÔÚBlockģʽϼ¤»î¡°×èÖ¹ËùÓÐOfficeÓ¦Ó÷¨Ê½´´½¨×Ó½ø³Ì¡±¹æÔò¡£ÈôÄú»¹Ã»ÓÐʹÓÃASR¹æÔò£¬¿ÉÏÈÔÚAuditģʽÏÂÔËÐйæÔò£¬ÊÓ²ì½á¹ûÒÔÈ·±£²»»á¶ÔϵͳÔì³Éµ¹Ã¹Ó°Ïì¡£

×¢Ò⣺Ñо¿ÈËÔ±½«¼ì²âµ½ÔÚÒ°ÀûÓõÄ0 day©¶´±êʶΪMicrosoft Office ´úÂëÖ´ÐÐ0 day©¶´£¨³ÆÎª¡°Follina¡±£©£¬¸Ã©¶´Ó°ÏìÁËOffice 2016 ºÍ Office 2021µÈ¡£±¾Í¨¸æÖ÷Òª²Î¿¼Î¢Èí¹Ù·½Í¨¸æMicrosoft Windows Ö§³ÖÕï¶Ï¹¤¾ß (MSDT) ÈÎÒâ´úÂëÖ´ÐЩ¶´¡£

 

0x03 ²Î¿¼Á´½Ó

https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2022-30190

https://doublepulsar.com/follina-a-microsoft-office-code-execution-vulnerability-1a47fce5629e

https://www.huntress.com/blog/microsoft-office-remote-code-execution-follina-msdt-bug

https://thehackernews.com/2022/05/watch-out-researchers-spot-new.html

 

0x04 °æ±¾ÐÅÏ¢

°æ±¾

ÈÕÆÚ

ÐÞ¸ÄÄÚÈÝ

V1.0

2022-05-31

Ê×´ÎÐû²¼

V2.0

2022-06-02

ÐÂÔö»º½â´ëÊ©µÈ

 

0x05 ¸½Â¼

¶«É­Æ½Ì¨¼ò½é

¶«É­Æ½Ì¨¹«Ë¾½¨Á¢ÓÚ1996Ä꣬²¢ÓÚ2010Äê6ÔÂ23ÈÕÔÚÉî½»ËùÖÐС°åÕýʽ¹ÒÅÆÉÏÊУ¬ÊǹúÄÚ¼«¾ßʵÁ¦µÄ¡¢ÓµÓÐÍêÈ«×ÔÖ÷֪ʶ²úȨµÄÍøÂçÄþ¾²²úÎï¡¢¿ÉÐÅÄþ¾²¹ÜÀíÆ½Ì¨¡¢Äþ¾²·þÎñÓë½â¾ö·½°¸µÄ×ÛºÏÌṩÉÌ¡£

¹«Ë¾×ܲ¿Î»ÓÚ±±¾©ÊÐÖйشåÈí¼þÔ°£¬ÔÚÈ«¹ú¸÷Ê¡¡¢ÊС¢×ÔÖÎÇøÉèÓзÖÖ§»ú¹¹£¬ÓµÓÐÁýÕÖÈ«¹úµÄÇþµÀÌåϵºÍ¼¼ÊõÖ§³ÖÖÐÐÄ£¬²¢ÔÚ±±¾©¡¢ÉϺ£¡¢³É¶¼¡¢¹ãÖÝ¡¢³¤É³¡¢º¼ÖÝµÈ¶àµØÉèÓÐÑз¢ÖÐÐÄ¡£

¶àÄêÀ´£¬¶«É­Æ½Ì¨ÖÂÁ¦ÓÚÌṩ¾ßÓйú¼Ê¾ºÕùÁ¦µÄ×ÔÖ÷´´ÐµÄÄþ¾²²úÎïºÍ×î¼Ñʵ¼ù·þÎñ£¬×ÊÖú¿Í»§È«ÃæÌáÉýÆäIT»ù´¡ÉèÊ©µÄÄþ¾²ÐÔºÍÉú²úЧÄÜ£¬Îª´òÔìºÍÌáÉý¹ú¼Ê»¯µÄÃñ×åÐÅÏ¢Äþ¾²¹¤ÒµÁì¾üÆ·ÅÆ¶ø²»Ð¸Å¬Á¦¡£


¹ØÓÚ¶«É­Æ½Ì¨

¶«É­Æ½Ì¨Äþ¾²Ó¦¼±ÏìÓ¦ÖÐÐÄÖ÷ÒªÕë¶ÔÖØÒªÄþ¾²Â©¶´µÄÔ¤¾¯¡¢¸ú×ٺͷÖÏíÈ«Çò×îеÄÍþвÇ鱨ºÍÄþ¾²³ÂËß¡£

¹Ø×¢ÒÔϹ«Öںţ¬»ñȡȫÇò×îÐÂÄþ¾²×ÊѶ£º

image.png