¡¾Îó²îͨ¸æ¡¿Docker Engine AuthZÊÚȨÈƹýÎó²î£¨CVE-2024-41110£©

Ðû²¼Ê±¼ä 2024-07-24

Ò»¡¢Îó²î¸ÅÊö

Îó²îÃû³Æ

 Docker Engine AuthZÊÚȨÈƹýÎó²î

CVE   ID

CVE-2024-41110

Îó²îÀàÐÍ

Çå¾²Èƹý

·¢Ã÷ʱ¼ä

2024-07-24

Îó²îÆÀ·Ö

9.9

Îó²îÆ·¼¶

ÖÐΣ

¹¥»÷ÏòÁ¿

ÍøÂç

ËùÐèȨÏÞ

µÍ

ʹÓÃÄѶÈ

µÍ

Óû§½»»¥

ÎÞ

PoC/EXP

δ¹ûÕæ

ÔÚҰʹÓÃ

δ·¢Ã÷

 

Docker EngineÊÇDockerµÄ½¹µã×é¼þ £¬ÊÇÒ»¸ö¿ªÔ´µÄÈÝÆ÷ÒýÇæ £¬ÈÏÕæ¹¹½¨¡¢ÔËÐкÍÖÎÀíÈÝÆ÷  ¡£Docker EngineµÄAuthZ²å¼þÊÇÒ»ÖÖÓÃÓÚʵÏÖDocker»á¼û¿ØÖÆ»úÖƵIJå¼þ £¬¿ÉÒÔʵÏÖ¶ÔDocker APIµÄϸÁ£¶È»á¼û¿ØÖÆ £¬ÔöÇ¿DockerµÄÇå¾²ÐÔ  ¡£

2024Äê7ÔÂ24ÈÕ £¬ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼¯ÍÅVSRC¼à²âµ½DockerÐû²¼Çå¾²¸üР£¬ÐÞ¸´ÁËDocker EngineÖеÄAuthZÊÚȨÈƹýÎó²î£¨CVE-2024-41110£©  ¡£

Docker Engine¶à¸öÊÜÓ°Ïì°æ±¾ÖÐ £¬µ±ÉèÖÃΪʹÓÃAuthZ²å¼þʱ±£´æÊÚȨÈƹýÎó²î £¬ÍþвÕß¿ÉÒÔͨ¹ý½« Content-Length ÉèÖÃΪ0 µÄ API ÇëÇóÀ´Ê¹ÓøÃÎó²î £¬µ¼Ö Docker ÊØ»¤Àú³Ì½«Ã»ÓÐÕýÎĵÄÇëÇóת·¢¸øAuthZ ²å¼þ £¬AuthZ²å¼þ¿ÉÄÜ»á¹ýʧµØÅú×¼¸ÃÇëÇó £¬´Ó¶øµ¼ÖÂÖ´ÐÐδÊÚȨ²Ù×÷ £¬ÈçȨÏÞÌáÉýµÈ  ¡£

 

¶þ¡¢Ó°Ïì¹æÄ£

Docker Engine >= v19.03.x ÇÒʹÓÃAuthZ²å¼þµÄÓû§Ò×ÊܸÃÎó²îÓ°Ïì £¬²»Ê¹ÓÃAuthZ²å¼þ»òÔËÐоɰæ Docker EngineµÄÓû§²»Ò×Êܵ½Ó°Ïì  ¡£ÓÉÓÚDocker-CEºÍDocker Desktop¶¼ÒÀÀµDocker Engine £¬¸ÃÎó²î¿ÉÄÜÓ°ÏìÒÔϲúÆ·£º

Docker-CE <= v19.03.15

Docker-CE <= v20.10.27

Docker-CE <= v23.0.14

Docker-CE <= v24.0.9

Docker-CE <= v25.0.5

Docker-CE <= v26.0.2

Docker-CE <= v26.1.4

Docker-CE <= v27.0.3

Docker-CE <= v27.1.0

Docker Desktop <= v4.32.0

×¢£ºDocker EngineµÄAuthZ²å¼þÔÚDocker CE»òDocker DesktopÖÐͨ³£ÊÇ¿ÉÑ¡²å¼þ  ¡£Docker EE v19.03.x ºÍMirantis Container RuntimeËùÓа汾²»ÊܸÃÎó²îÓ°Ïì  ¡£

 

Èý¡¢Çå¾²²½·¥

3.1 Éý¼¶°æ±¾

ÏÖÔÚ¸ÃÎó²îÒѾ­ÐÞ¸´ £¬ÊÜÓ°ÏìÓû§¿ÉÉý¼¶µ½ÒÔÏ°汾£º

Docker Engine£ºÉý¼¶µ½×îÐÂÐÞ¸´°æ±¾  ¡£

Docker-CE£ºÉý¼¶µ½v27.1.1¼°¸ü¸ß°æ±¾ £¬»òÉý¼¶µ½ÏìÓ¦·ÖÖ§°æ±¾µÄ²¹¶¡°æ±¾  ¡£

Docker Desktop£ºÉý¼¶µ½Docker Desktop 4.33£¨ÔÝδÐû²¼£©»ò¸ü¸ß°æ±¾  ¡£

ÏÂÔØÁ´½Ó£º

https://www.docker.com/

3.2 ÔÝʱ²½·¥

ÈçÎÞ·¨Á¬Ã¦¸üР£¬¿ÉʵÑéÒÔÏ»º½â²½·¥£º

×èֹʹÓà AuthZ ²å¼þ  ¡£

È·±£Ö»ÓÐÊÜÐÅÍеÄʵÌåÄܹ»»á¼ûDocker API £¬²¢×ñÕÕ×îСȨÏÞÔ­Ôò  ¡£

3.3 ͨÓý¨Òé

l  °´ÆÚ¸üÐÂϵͳ²¹¶¡ £¬ïÔ̭ϵͳÎó²î £¬ÌáÉý·þÎñÆ÷µÄÇå¾²ÐÔ  ¡£

l  ÔöǿϵͳºÍÍøÂçµÄ»á¼û¿ØÖÆ £¬Ð޸ķÀ»ðǽսÂÔ £¬¹Ø±Õ·ÇÐëÒªµÄÓ¦Óö˿ڻò·þÎñ £¬ïÔÌ­½«Î£ÏÕ·þÎñ£¨ÈçSSH¡¢RDPµÈ£©Ì»Â¶µ½¹«Íø £¬ïÔÌ­¹¥»÷Ãæ  ¡£

l  ʹÓÃÆóÒµ¼¶Çå¾²²úÆ· £¬ÌáÉýÆóÒµµÄÍøÂçÇå¾²ÐÔÄÜ  ¡£

l  ÔöǿϵͳÓû§ºÍȨÏÞÖÎÀí £¬ÆôÓöàÒòËØÈÏÖ¤»úÖƺÍ×îСȨÏÞÔ­Ôò £¬Óû§ºÍÈí¼þȨÏÞÓ¦¼á³ÖÔÚ×îµÍÏÞ¶È  ¡£

l  ÆôÓÃÇ¿ÃÜÂëÕ½ÂÔ²¢ÉèÖÃΪ°´ÆÚÐÞ¸Ä  ¡£

3.4 ²Î¿¼Á´½Ó

https://www.docker.com/blog/docker-security-advisory-docker-engine-authz-plugin/

https://github.com/moby/moby/security/advisories/GHSA-v23v-6jw2-98fq

https://docs.docker.com/desktop/release-notes/

https://github.com/moby/moby/compare/v27.1.0...v27.1.1

https://docs.docker.com/engine/extend/plugins_authorization/

 

ËÄ¡¢°æ±¾ÐÅÏ¢

°æ±¾

ÈÕÆÚ

±¸×¢

V1.0

2024-07-24

Ê×´ÎÐû²¼

 

Îå¡¢¸½Â¼

5.1 ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø¼ò½é

ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø½¨ÉèÓÚ1996Äê £¬ÊÇÓÉÁôÃÀ²©Ê¿ÑÏÍû¼ÑŮʿ½¨ÉèµÄ¡¢ÓµÓÐÍêÈ«×ÔÖ÷֪ʶ²úȨµÄÐÅÏ¢Çå¾²¸ß¿Æ¼¼ÆóÒµ  ¡£ÊǺ£ÄÚ×î¾ßʵÁ¦µÄÐÅÏ¢Çå¾²²úÆ·¡¢Çå¾²·þÎñ½â¾ö¼Æ»®µÄÁ캽ÆóÒµÖ®Ò»  ¡£

¹«Ë¾×ܲ¿Î»ÓÚ±±¾©ÊÐÖйشåÈí¼þÔ°ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø´óÏà £¬¹«Ë¾Ô±¹¤6000ÓàÈË £¬Ñз¢ÍŶÓ1200ÓàÈË, ÊÖÒÕ·þÎñÍŶÓ1300ÓàÈË  ¡£ÔÚÌìϸ÷Ê¡¡¢ÊС¢×ÔÖÎÇøÉèÁ¢·ÖÖ§»ú¹¹ÁùÊ®¶à¸ö £¬ÓµÓÐÁýÕÖÌìϵÄÏúÊÛϵͳ¡¢ÇþµÀϵͳºÍÊÖÒÕÖ§³Öϵͳ  ¡£¹«Ë¾ÓÚ2010Äê6ÔÂ23ÈÕÔÚÉîÛÚÖÐС°å¹ÒÅÆÉÏÊÐ  ¡££¨¹ÉƱ´úÂ룺002439£©

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

5.2 ¹ØÓÚÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍø

ÓÅ·¢¹ú¼ÊÍøÕ¾¹ÙÍøÇå¾²Ó¦¼±ÏìÓ¦ÖÐÐÄÒÑÐû²¼1000¶à¸öÎó²îͨ¸æºÍΣº¦Ô¤¾¯ £¬ÎÒÃǽ«Ò»Á¬¸ú×ÙÈ«Çò×îеÄÍøÂçÇå¾²ÊÂÎñºÍÎó²î £¬ÎªÆóÒµµÄÐÅÏ¢Çå¾²±£¼Ý»¤º½  ¡£

¹Ø×¢ÎÒÃÇ£º

image.png