¡¾Îó²îͨ¸æ¡¿OpenSSH ServerÔ¶³Ì´úÂëÖ´ÐÐÎó²î£¨CVE-2024-6387£©
Ðû²¼Ê±¼ä 2024-07-01
Ò»¡¢Îó²î¸ÅÊö
Îó²îÃû³Æ | OpenSSH ServerÔ¶³Ì´úÂëÖ´ÐÐÎó²î | ||
CVE ID | CVE-2024-6387 | ||
Îó²îÀàÐÍ | ¾ºÕùÌõ¼þ | ·¢Ã÷ʱ¼ä | 2024-07-01 |
Îó²îÆÀ·Ö | 8.1 | Îó²îÆ·¼¶ | ¸ßΣ |
¹¥»÷ÏòÁ¿ | ÍøÂç | ËùÐèȨÏÞ | ÎÞ |
ʹÓÃÄÑ¶È | ¸ß | Óû§½»»¥ | ÎÞ |
PoC/EXP | δ¹ûÕæ | ÔÚҰʹÓà | δ·¢Ã÷ |
OpenSSHÊÇSSH£¨Secure SHell£©ÐÒéµÄ¿ªÔ´ÊµÏÖ£¬Ëüͨ¹ý²»Çå¾²µÄÍøÂçÔÚÁ½¸ö²»ÊÜÐÅÍеÄÖ÷»úÖ®¼äÌṩÇå¾²µÄ¼ÓÃÜͨѶ¡£OpenSSH ÆÕ±éÓÃÓÚ»ùÓÚUnix µÄϵͳ£¬Í¨³£ÓÃÓÚÇå¾²Ô¶³ÌµÇ¼ºÍÔ¶³ÌÎļþ´«Ê䣬ÒÔ¼°ÆäËüÍøÂç·þÎñ¡£
2024Äê7ÔÂ1ÈÕ£¬ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼¯ÍÅVSRC¼à²âµ½OpenSSH ServerÖб£´æÒ»¸öÔ¶³Ì´úÂëÖ´ÐÐÎó²î£¨CVE-2024-6387£¬±»³ÆΪregreSSHion£©£¬¸ÃÎó²îÓ°Ïì»ùÓÚ glibc µÄLinuxϵͳÉ쵀 OpenSSH Server (sshd)£¬ÏÖÔÚÎó²îϸ½ÚÒѹûÕæ¡£
ĬÈÏÉèÖÃϵÄOpenSSH Server (sshd)Öб£´æÐźŴ¦Öóͷ£³ÌÐò¾ºÕùÌõ¼þÎó²î£¬ÈôÊÇ¿Í»§¶ËδÔÚLoginGraceTime ÃëÄÚ£¨Ä¬ÈÏÇéÐÎÏÂΪ 120 Ã룬¾É°æ OpenSSH ÖÐΪ 600 Ã룩¾ÙÐÐÉí·ÝÑéÖ¤£¬Ôò sshd µÄ SIGALRM ´¦Öóͷ£³ÌÐò½«±»Òì³ÌÐòÓ㬵«¸ÃÐźŴ¦Öóͷ£³ÌÐò»áŲÓÃÖÖÖÖ·Çasync-signal-safeµÄº¯Êý£¨ÀýÈçsyslog()£©£¬ÍþвÕß¿ÉʹÓøÃÎó²îÔÚ»ùÓÚ glibc µÄ Linux ϵͳÉÏÒÔ root Éí·ÝʵÏÖδ¾Éí·ÝÑéÖ¤µÄÔ¶³Ì´úÂëÖ´ÐС£
¶þ¡¢Ó°Ïì¹æÄ£
OpenSSH < 4.4p1£¨³ý·ÇÒÑÕë¶Ô CVE-2006-5051ºÍCVE-2008-4109 ¾ÙÐÐÐÞ¸´£©
8.5p1 <= OpenSSH < 9.8p1
×¢£º4.4p1 <= OpenSSH < 8.5p1²»Ò×Êܵ½¸ÃÎó²î¹¥»÷£¬OpenBSDϵͳ²»ÊܸÃÎó²îÓ°Ïì¡£
Èý¡¢Çå¾²²½·¥
3.1 Éý¼¶°æ±¾
ÏÖÔÚ¸ÃÎó²îÒÑÐÞ¸´£¬ÊÜÓ°ÏìÓû§¿ÉÉý¼¶µ½Ä¿½ñ×îа汾OpenSSH 9.8p1»òÓ¦ÓÃÏà¹Ø²¹¶¡»ò»º½â¡£
ÏÂÔØÁ´½Ó£º
https://www.openssh.com/
²¹¶¡ÏÂÔØÁ´½Ó£º
https://github.com/openssh/openssh-portable/commit/81c1099d22b81ebfd20a334ce986c4f753b0db29
3.2 ÔÝʱ²½·¥
¿ÉÒÔͨ¹ýÑéÖ¤Ëù×°ÖÃµÄ OpenSSH Server°æÔÀ´È·¶¨ÆäϵͳÊÇ·ñÒ×Êܹ¥»÷£¬ÈçÈ·ÈÏÊÜÓ°Ïì¿Éʵʱ¸üУ¬ÓÈÆäÊÇÃæÏò»¥ÁªÍøµÄ×ʲú¡£
ÈôÊÇ sshd ÎÞ·¨¸üлòÖØбàÒ룬¿ÉÔÚÉèÖÃÎļþÖн« LoginGraceTime ÉèÖÃΪ 0£¬Õâ»áºÄ¾¡ËùÓÐ MaxStartups ÅþÁ¬£¬´Ó¶øʹsshd ÈÝÒ×Êܵ½¾Ü¾ø·þÎñ¹¥»÷£¬µ«¿ÉÒÔ»º½â¸ÃRCEΣº¦¡£
3.3 ͨÓý¨Òé
l °´ÆÚ¸üÐÂϵͳ²¹¶¡£¬ïÔÌϵͳÎó²î£¬ÌáÉý·þÎñÆ÷µÄÇå¾²ÐÔ¡£
l ÔöǿϵͳºÍÍøÂçµÄ»á¼û¿ØÖÆ£¬Ð޸ķÀ»ðǽսÂÔ£¬¹Ø±Õ·ÇÐëÒªµÄÓ¦Óö˿ڻò·þÎñ£¬ïÔ̽«Î£ÏÕ·þÎñ£¨ÈçSSH¡¢RDPµÈ£©Ì»Â¶µ½¹«Íø£¬ïÔ̹¥»÷Ãæ¡£
l ʹÓÃÆóÒµ¼¶Çå¾²²úÆ·£¬ÌáÉýÆóÒµµÄÍøÂçÇå¾²ÐÔÄÜ¡£
l ÔöǿϵͳÓû§ºÍȨÏÞÖÎÀí£¬ÆôÓöàÒòËØÈÏÖ¤»úÖƺÍ×îСȨÏÞÔÔò£¬Óû§ºÍÈí¼þȨÏÞÓ¦¼á³ÖÔÚ×îµÍÏ޶ȡ£
l ÆôÓÃÇ¿ÃÜÂëÕ½ÂÔ²¢ÉèÖÃΪ°´ÆÚÐ޸ġ£
3.4 ²Î¿¼Á´½Ó
https://www.openssh.com/releasenotes.html
https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt
https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server
ËÄ¡¢°æ±¾ÐÅÏ¢
°æ±¾ | ÈÕÆÚ | ±¸×¢ |
V1.0 | 2024-07-01 | Ê×´ÎÐû²¼ |
Îå¡¢¸½Â¼
5.1 ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼ò½é
ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø½¨ÉèÓÚ1996Ä꣬ÊÇÓÉÁôÃÀ²©Ê¿ÑÏÍû¼ÑŮʿ½¨ÉèµÄ¡¢ÓµÓÐÍêÈ«×ÔÖ÷֪ʶ²úȨµÄÐÅÏ¢Çå¾²¸ß¿Æ¼¼ÆóÒµ¡£ÊǺ£ÄÚ×î¾ßʵÁ¦µÄÐÅÏ¢Çå¾²²úÆ·¡¢Çå¾²·þÎñ½â¾ö¼Æ»®µÄÁ캽ÆóÒµÖ®Ò»¡£
¹«Ë¾×ܲ¿Î»ÓÚ±±¾©ÊÐÖйشåÈí¼þÔ°ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø´óÏ㬹«Ë¾Ô±¹¤6000ÓàÈË£¬Ñз¢ÍŶÓ1200ÓàÈË, ÊÖÒÕ·þÎñÍŶÓ1300ÓàÈË¡£ÔÚÌìϸ÷Ê¡¡¢ÊС¢×ÔÖÎÇøÉèÁ¢·ÖÖ§»ú¹¹ÁùÊ®¶à¸ö£¬ÓµÓÐÁýÕÖÌìϵÄÏúÊÛϵͳ¡¢ÇþµÀϵͳºÍÊÖÒÕÖ§³Öϵͳ¡£¹«Ë¾ÓÚ2010Äê6ÔÂ23ÈÕÔÚÉîÛÚÖÐС°å¹ÒÅÆÉÏÊС££¨¹ÉƱ´úÂ룺002439£©
¶àÄêÀ´£¬ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍøÖÂÁ¦ÓÚÌṩ¾ßÓйú¼Ê¾ºÕùÁ¦µÄ×ÔÖ÷Á¢ÒìµÄÇå¾²²úÆ·ºÍ×î¼Ñʵ¼ù·þÎñ£¬×ÊÖú¿Í»§ÖÜÈ«ÌáÉýÆäIT»ù´¡ÉèÊ©µÄÇå¾²ÐÔºÍÉú²úЧÄÜ£¬Îª´òÔìºÍÌáÉý¹ú¼Ê»¯µÄÃñ×åÐÅÏ¢Çå¾²¹¤ÒµÁì¾üÆ·Åƶø²»Ð¸Æ𾢡£
5.2 ¹ØÓÚÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø
ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍøÇå¾²Ó¦¼±ÏìÓ¦ÖÐÐÄÒÑÐû²¼1000¶à¸öÎó²îͨ¸æºÍΣº¦Ô¤¾¯£¬ÎÒÃǽ«Ò»Á¬¸ú×ÙÈ«Çò×îеÄÍøÂçÇå¾²ÊÂÎñºÍÎó²î£¬ÎªÆóÒµµÄÐÅÏ¢Çå¾²±£¼Ý»¤º½¡£
¹Ø×¢ÎÒÃÇ£º