¡¾Ô´´Îó²î¡¿sudo rootȨÏÞÈƹý(CVE-2019-14287)
Ðû²¼Ê±¼ä 2019-10-15
1¡¢Åä¾°ÐÎò
Çå¾²Ñо¿Ö°Ô±ÔÚsudoÖз¢Ã÷ÁËÒ»¸öÎó²î£¬ËüÊÇ×îÖ÷Òª£¬¹¦Ð§×îÇ¿Ê¢ÇÒ×î³£Óõij£ÓóÌÐòÖ®Ò»£¬Ëü×÷ΪװÖÃÔÚÏÕЩËùÓлùÓÚUNIXºÍLinuxµÄ²Ù×÷ϵͳÉϵĽ¹µãÏÂÁî¶ø·ºÆð¡£
2¡¢Îó²îÁбí
Îó²îÆ·¼¶£º ÖÐΣ
Ó°Ïì¹æÄ££º sudo 1.8.28֮ǰµÄ°æ±¾
3¡¢Îó²îÏêÇé
¸ÃÎó²îÊÇsudoÇå¾²Õ½ÂÔÈƹýÎÊÌ⣬×ÝÈ»¡° sudoersÉèÖá±Ã÷ȷեȡÁËrootÓû§»á¼û£¬¸ÃÎó²îÒ²¿ÉÄÜÔÊÐí¶ñÒâÓû§»ò³ÌÐòÒÔrootÓû§Éí·ÝÔÚÄ¿µÄLinuxϵͳÉÏÖ´ÐÐí§ÒâÏÂÁî¡£
sudo´ú±í¡°³¬µÈÓû§¡±£¬ËüÊÇÒ»¸öϵͳÏÂÁÔÊÐíÓû§ÒÔÆäËûÓû§µÄÌØȨÔËÐÐÓ¦ÓóÌÐò»òÏÂÁ¶øÎÞÐèÇл»ÇéÐΡ£Í¨³£ÒÔrootÓû§Éí·ÝÔËÐÐÏÂÁî¡£

ÈôÊÇƾ֤±ê×¼ÉèÖÃϵͳսÂÔ£¬Ôò²»Ò×Êܵ½¹¥»÷¡£ÈôÊÇÊǷDZê×¼ÉèÖã¬ÀýÈ磺Runas¹æ·¶Ã÷ȷեȡroot»á¼û£¬Runas¹æ·¶ÖÐÊ×ÏÈÁгöALLÒªº¦×Ö£¬ÄÇôsudoȨÏÞµÄÓû§¾Í¿ÉÒÔʹÓÃËüÀ´ÒÔrootÉí·ÝÔËÐÐÏÂÁî¡£ÈôÊÇͨ¹ý-uÑ¡ÏîÖ¸¶¨µÄÓû§IDÔÚÃÜÂëÊý¾Ý¿âÖв»±£´æ£¬Òò´Ë²»»áÔËÐÐÈκÎPAM»á»°Ä£¿é¡£


4¡¢ÐÞ¸´½¨Òé
Red Hat Enterprise Linux / CentOS
https://access.redhat.com/security/cve/CVE-2019-14287
Ubuntu
https://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-14287.html
SUSE / openSUSE
https://www.suse.com/security/cve/CVE-2019-14287.html
5¡¢²Î¿¼Á´½Ó
https://www.sudo.ws/alerts/minus_1_uid.html