¡¾Îó²îͨ¸æ¡¿UNIX CUPSÔ¶³Ì´úÂëÖ´ÐÐÎó²î
Ðû²¼Ê±¼ä 2024-09-27Ò»¡¢Îó²î¸ÅÊö
Îó²îÃû³Æ | UNIX CUPSÔ¶³Ì´úÂëÖ´ÐÐÎó²î | ||
CVE ID | CVE-2024-47076¡¢CVE-2024-47175¡¢CVE-2024-47176¡¢ CVE-2024-47177 | ||
Îó²îÀàÐÍ | RCE | ·¢Ã÷ʱ¼ä | 2024-09-24 |
Îó²îÆÀ·Ö | 9.9 | Îó²îÆ·¼¶ | ¸ßΣ |
¹¥»÷ÏòÁ¿ | ÍøÂç | ËùÐèȨÏÞ | ÎÞ |
ʹÓÃÄÑ¶È | µÍ | Óû§½»»¥ | ÎÞ |
PoC/EXP | ÒѹûÕæ | ÔÚҰʹÓà | δ·¢Ã÷ |
CUPS£¨Common UNIX Printing System£¬Í¨ÓÃUnix ´òӡϵͳ£©ÊÇUnix/LinuxϵͳÖÐÓÃÓÚÖÎÀí´òÓ¡µÄÖ÷Òª¹¤¾ß£¬Ö÷ÒªÓÃÓÚÖÎÀí´òӡʹÃü¡¢´òÓ¡ÇëÇóºÍ´òÓ¡ÐÐÁС£µ«²¢·ÇËùÓÐϵͳ¶¼Ä¬ÈÏÆôÓà CUPS£¬¼¤»îºóËüÔÊÐíÅÌËã»ú³äµ±´òÓ¡·þÎñÆ÷£¬ÖÎÀí´òÓ¡×÷ÒµºÍÐÐÁв¢Í¨¹ý Internet ´òÓ¡ÐÒé (IPP) Ö§³ÖÍøÂç´òÓ¡¡£
¿ËÈÕ£¬ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼¯ÍÅVSRC¼à²âµ½CUPS ´òӡϵͳµÄ¶à¸ö×é¼þÖб£´æ¶à¸öÇå¾²Îó²î£¬×é³ÉÔ¶³Ì´úÂëÖ´ÐÐÁ´¡£µ±ÆôÓÃcups-browsed ÊØ»¤³ÌÐò£¨Ä¬ÈϼàÌýUDP ¶Ë¿Ú631£¬Í¨³£²»ÆôÓã©Ê±£¬Î´¾Éí·ÝÑéÖ¤µÄÔ¶³Ì¹¥»÷Õ߿ɽṹ¶ñÒâÇëÇóʹÓÃÕâЩÎó²îÔÚÄ¿µÄϵͳÉÏÖ´ÐÐí§Òâ´úÂ룬ÏÖÔÚ²¿·ÖÎó²îϸ½Ú¼°PoCÒѹûÕ棬ÏêÇéÈçÏ£º
CVE-2024-47176£ºCUPS ÖÐcups-browsed°üÀ¨ÍøÂç´òÓ¡¹¦Ð§£¬Èç×Ô¶¯·¢Ã÷´òÓ¡·þÎñºÍ¹²Ïí´òÓ¡»úµÈ¡£cups-browsed <= 2.0.1°ó¶¨ÔÚ UDP INADDR_ANY:631 ÉÏ£¬²¢ÐÅÍÐÀ´×ÔÈκÎȪԴµÄÈκÎÊý¾Ý°ü£¬¿ÉÄܵ¼Ö `Get-Printer-Attributes` IPP ÇëÇó·¢Ë͵½¹¥»÷Õß¿ØÖÆµÄ URL¡£
CVE-2024-47076£ºLibcupsfilters <= 2.1b1ÖУ¬cfGetPrinterAttributes5 º¯ÊýÎÞ·¨ÑéÖ¤»òÕûÀíIPP·þÎñÆ÷·µ»ØµÄIPPÊôÐÔ£¬¿ÉÄܵ¼Ö¹¥»÷Õß¿ØÖƵÄÊý¾ÝÓëCUPSϵͳµÄÆäÓಿ·Ö¾ÙÐн»»¥¡£
CVE-2024-47175£ºlibppd<= 2.1b1ÖУ¬º¯Êý ppdCreatePPDFromIPP2 ÔÚ½« IPP ÊôÐÔдÈëÔÝʱPPDÎļþʱ²»»áÑéÖ¤»òÕûÀíIPPÊôÐÔ£¬¿ÉÄܵ¼ÖÂÔÚÌìÉúµÄPPDÖÐ×¢Èë¹¥»÷Õß¿ØÖƵÄÊý¾Ý¡£
CVE-2024-47177£ºcups-filters<=2.0.1 foomatic ripÔÊÐíͨ¹ýFoomaticRIPCommandLine PPD²ÎÊýÖ´ÐÐí§ÒâÏÂÁî¡£
¹¥»÷Õß¿ÉÒÔͨ¹ýÒÔÏÂÓγÌʵÏÖÔ¶³Ì´úÂëÖ´ÐУº
l ¹¥»÷ÕßÏòÄ¿µÄϵͳµÄUDP¶Ë¿Ú631·¢ËÍ°üÀ¨¶ñÒâURLµÄÊý¾Ý°ü¡£
l CUPSϵͳµÄcups-browsed×é¼þ»áÅþÁ¬µ½¸ÃURL£¬²¢ÇëÇó¶ñÒâIPP·þÎñÆ÷·µ»ØαÔìµÄPPDÎļþ¡£
l ¸ÃPPDÎļþ°üÀ¨¶ñÒâµÄFoomaticRIPCommandLineÖ¸ÁÕâЩָÁдÈëϵͳµÄÔÝʱPPDÎļþÖС£
l µ±Óû§·¢ËÍ´òÓ¡×÷ҵʱ£¬CUPSϵͳ»áŲÓÃfoomatic-rip¹ýÂËÆ÷£¬²¢Ö´ÐÐPPDÎļþÖеĶñÒâÏÂÁî¡£
l ¹¥»÷ÕßµÄÏÂÁîÔÚÄ¿µÄϵͳÉϱ»Ö´ÐУ¬Íê³ÉÔ¶³Ì´úÂëÖ´ÐС£
¶þ¡¢Îó²î¸´ÏÖ
Èý¡¢Ó°Ïì¹æÄ£
ÊÜÓ°ÏìCUPS×é¼þ
CVE-2024-47176: cups-browsed ¡Ü 2.0.1
CVE-2024-47076: libcupsfilters ¡Ü 2.1b1
CVE-2024-47175: libppd ¡Ü 2.1b1
CVE-2024-47177: cups-filters ¡Ü 2.0.1
ÊÜÓ°Ïìϵͳ
ÓÉÓÚCUPS ºÍ cups-browsed ÊÊÓÃÓÚ´ó´ó¶¼ UNIX ϵͳ£¬ÕâЩÎó²î¿ÉÄÜÓ°ÏìArch Linux¡¢Debian¡¢Red Hat / Fedora¡¢openSUSE¡¢Slackware¡¢UbuntuµÈ»ùÓÚ Unix ÇÒ´øÓÐ CUPS ·þÎñµÄϵͳ¡£
ËÄ¡¢Çå¾²²½·¥
4.1 Éý¼¶°æ±¾
ÏÖÔÚÉÏÊöÎó²îÔÝÎÞÏìÓ¦²¹¶¡£¬ÊÜÓ°ÏìÓû§¿ÉÓ¦ÓÃÏà¹Ø»º½â²½·¥²¢ÔÚÇå¾²¸üÐÂÐû²¼ºóÉý¼¶µ½×îа汾¡£
ÏÂÔØÁ´½Ó£º
https://github.com/OpenPrinting/cups-browsed/releases
l GNU/Linux ¿¯Ðаæ
²Î¿¼Á´½Ó£º
https://pkgs.org/download/cups-browsed
l BSD
²Î¿¼Á´½Ó£º
https://docs.freebsd.org/en/articles/cups/
l Google Chromium/ChromeOS
²Î¿¼Á´½Ó£º
https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/third_party/chromiumos-overlay/net-print/;bpv=1
l Oracle Solaris
²Î¿¼Á´½Ó£º
https://docs.oracle.com/cd/E23824_01/html/821-1451/cups-intro.html
4.2 ÔÝʱ²½·¥
Èô·ÇÐëÒª£¬½¨Òé½ûÓûòɾ³ýcups-browsed·þÎñ¡£
ÔÚ¸üпÉÓÃʱʵʱ¸üÐÂϵͳÉ쵀 CUPS °ü£»ÈôÊÇϵͳÎÞ·¨ÊµÊ±¸üУ¬²¢ÇÒÐèÒªÒÀÀµcups-browsed·þÎñ£¬¿Éͨ¹ý×èÖ¹ËùÓз¢Ë͵½UDP¶Ë¿Ú631µÄÁ÷Á¿£¬»òÏÞÖƸö˿ڽö¿ÉÐŵصã»á¼û¡£
¼ì²â
¿ÉʹÓÃÒÔÏÂÏÂÁîÉó²é cups-browsed ·þÎñµÄ״̬£¬ÈôÊÇ·þÎñÒÑÆôÓÃ/ÕýÔÚÔËÐУ¬Ôòϵͳ¿ÉÄÜÒ×Êܹ¥»÷£º
systemctl status cups-browsed »òÕßservice cups-browsed status
4.3 ͨÓý¨Òé
l °´ÆÚ¸üÐÂϵͳ²¹¶¡£¬ïÔÌϵͳÎó²î£¬ÌáÉý·þÎñÆ÷µÄÇå¾²ÐÔ¡£
l ÔöǿϵͳºÍÍøÂçµÄ»á¼û¿ØÖÆ£¬Ð޸ķÀ»ðǽսÂÔ£¬¹Ø±Õ·ÇÐëÒªµÄÓ¦Óö˿ڻò·þÎñ£¬ïÔ̽«Î£ÏÕ·þÎñ£¨ÈçSSH¡¢RDPµÈ£©Ì»Â¶µ½¹«Íø£¬ïÔ̹¥»÷Ãæ¡£
l ʹÓÃÆóÒµ¼¶Çå¾²²úÆ·£¬ÌáÉýÆóÒµµÄÍøÂçÇå¾²ÐÔÄÜ¡£
l ÔöǿϵͳÓû§ºÍȨÏÞÖÎÀí£¬ÆôÓöàÒòËØÈÏÖ¤»úÖƺÍ×îСȨÏÞÔÔò£¬Óû§ºÍÈí¼þȨÏÞÓ¦¼á³ÖÔÚ×îµÍÏ޶ȡ£
l ÆôÓÃÇ¿ÃÜÂëÕ½ÂÔ²¢ÉèÖÃΪ°´ÆÚÐ޸ġ£
4.4 ²Î¿¼Á´½Ó
https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I/
https://www.redhat.com/en/blog/red-hat-response-openprinting-cups-vulnerabilities
https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8
https://nvd.nist.gov/vuln/detail/CVE-2024-47176
Îå¡¢°æ±¾ÐÅÏ¢
°æ±¾ | ÈÕÆÚ | ±¸×¢ |
V1.0 | 2024-09-27 | Ê×´ÎÐû²¼ |
V1.1 | 2024-09-30 | ÐÂÔöÎó²î¸´ÏÖ |
Áù¡¢¸½Â¼
6.1 ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼ò½é
ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø½¨ÉèÓÚ1996Ä꣬ÊÇÓÉÁôÃÀ²©Ê¿ÑÏÍû¼ÑŮʿ½¨ÉèµÄ¡¢ÓµÓÐÍêÈ«×ÔÖ÷֪ʶ²úȨµÄÐÅÏ¢Çå¾²¸ß¿Æ¼¼ÆóÒµ¡£ÊǺ£ÄÚ×î¾ßʵÁ¦µÄÐÅÏ¢Çå¾²²úÆ·¡¢Çå¾²·þÎñ½â¾ö¼Æ»®µÄÁ캽ÆóÒµÖ®Ò»¡£
¹«Ë¾×ܲ¿Î»ÓÚ±±¾©ÊÐÖйشåÈí¼þÔ°ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø´óÏ㬹«Ë¾Ô±¹¤6000ÓàÈË£¬Ñз¢ÍŶÓ1200ÓàÈË, ÊÖÒÕ·þÎñÍŶÓ1300ÓàÈË¡£ÔÚÌìϸ÷Ê¡¡¢ÊС¢×ÔÖÎÇøÉèÁ¢·ÖÖ§»ú¹¹ÁùÊ®¶à¸ö£¬ÓµÓÐÁýÕÖÌìϵÄÏúÊÛϵͳ¡¢ÇþµÀϵͳºÍÊÖÒÕÖ§³Öϵͳ¡£¹«Ë¾ÓÚ2010Äê6ÔÂ23ÈÕÔÚÉîÛÚÖÐС°å¹ÒÅÆÉÏÊС££¨¹ÉƱ´úÂ룺002439£©
¶àÄêÀ´£¬ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍøÖÂÁ¦ÓÚÌṩ¾ßÓйú¼Ê¾ºÕùÁ¦µÄ×ÔÖ÷Á¢ÒìµÄÇå¾²²úÆ·ºÍ×î¼Ñʵ¼ù·þÎñ£¬×ÊÖú¿Í»§ÖÜÈ«ÌáÉýÆäIT»ù´¡ÉèÊ©µÄÇå¾²ÐÔºÍÉú²úЧÄÜ£¬Îª´òÔìºÍÌáÉý¹ú¼Ê»¯µÄÃñ×åÐÅÏ¢Çå¾²¹¤ÒµÁì¾üÆ·Åƶø²»Ð¸Æ𾢡£
6.2 ¹ØÓÚÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø
ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍøÇå¾²Ó¦¼±ÏìÓ¦ÖÐÐÄÒÑÐû²¼1000¶à¸öÎó²îͨ¸æºÍΣº¦Ô¤¾¯£¬ÎÒÃǽ«Ò»Á¬¸ú×ÙÈ«Çò×îеÄÍøÂçÇå¾²ÊÂÎñºÍÎó²î£¬ÎªÆóÒµµÄÐÅÏ¢Çå¾²±£¼Ý»¤º½¡£
¹Ø×¢ÎÒÃÇ£º