{"id":34141,"date":"2019-10-31T21:56:37","date_gmt":"2019-10-31T18:56:37","guid":{"rendered":"https:\/\/prohoster.info\/blog\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root\/"},"modified":"2019-10-31T21:56:37","modified_gmt":"2019-10-31T18:56:37","slug":"v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root","title":{"rendered":"A 19% legn\u00e9pszer\u0171bb Docker-k\u00e9pben nincs jelsz\u00f3 a root sz\u00e1m\u00e1ra.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>A m\u00falt szombaton, m\u00e1jus 18-\u00e1n, Jerry Gamblin a Kenna Security-t\u0151l <noindex><a rel=\"nofollow\" href=\"https:\/\/www.kennasecurity.com\/20-of-the-1000-most-popular-docker-containers-have-no-root-password\/\">ellen\u0151rizte<\/a><\/noindex> a Docker Hub-on el\u00e9rhet\u0151 1000 legn\u00e9pszer\u0171bb k\u00e9pet a haszn\u00e1lt root felhaszn\u00e1l\u00f3i jelsz\u00f3 alapj\u00e1n. A legt\u00f6bbsz\u00f6r, 19% esetben, az \u00fcres volt.<\/p>\n<p><img decoding=\"async\" alt=\"A 19% legn\u00e9pszer\u0171bb Docker-k\u00e9pben nincs jelsz\u00f3 a root sz\u00e1m\u00e1ra.\" src=\"\/wp-content\/uploads\/50d68e9378a116909318240ae1ca318a.png\" style=\"display:block;margin: 0 auto;\" \/><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><\/p>\n<h2>Az Alpine h\u00e1tt\u00e9r<\/h2>\n<p>\nA mini-kutat\u00e1s ok\u00e1t az ezen a h\u00f3napon megjelent Talos Vulnerability Report adta (<noindex><a rel=\"nofollow\" href=\"https:\/\/talosintelligence.com\/vulnerability_reports\/TALOS-2019-0782\">TALOS-2019-0782<\/a><\/noindex>), melynek szerz\u0151i, Peter Adkins a Cisco Umbrella-t\u00f3l, arr\u00f3l sz\u00e1moltak be, hogy a Docker k\u00e9pek n\u00e9pszer\u0171 Alpine Linux disztrib\u00faci\u00f3ja nem tartalmaz jelsz\u00f3t a root felhaszn\u00e1l\u00f3hoz:<\/p>\n<blockquote><p>\u201eA hivatalos Alpine Linux Docker k\u00e9pek (3.3-as verzi\u00f3t\u00f3l kezd\u0151d\u0151en) NULL jelsz\u00f3t tartalmaznak a root felhaszn\u00e1l\u00f3hoz. Ez a sebezhet\u0151s\u00e9g egy 2015 december\u00e9ben bemutatott regresszi\u00f3nak k\u00f6sz\u00f6nhet\u0151. L\u00e9nyege, hogy azok a rendszerek, amelyeket probl\u00e9m\u00e1s Alpine Linux verzi\u00f3k alapj\u00e1n telep\u00edtettek kont\u00e9nerekbe, \u00e9s Linux PAM-ot vagy m\u00e1s olyan mechanizmust haszn\u00e1lnak, amely a shadow rendszerf\u00e1jlt haszn\u00e1lja az azonos\u00edt\u00e1shoz, NULL (\u00fcres) jelsz\u00f3t fogadhatnak el a root felhaszn\u00e1l\u00f3hoz.\u201d<\/p><\/blockquote>\n<p>\nA probl\u00e9m\u00e1s Alpine Docker k\u00e9peket a 3.3\u20143.9 k\u00f6z\u00f6tti verzi\u00f3k, valamint az utols\u00f3 edge kiad\u00e1s azonos\u00edtotta.<\/p>\n<p>A szerz\u0151k a k\u00f6vetkez\u0151 aj\u00e1nl\u00e1st tett\u00e9k a probl\u00e9m\u00e1s felhaszn\u00e1l\u00f3knak:<\/p>\n<blockquote><p>\u201eA root fi\u00f3knak egy\u00e9rtelm\u0171en ki kell lennie kapcsolva a probl\u00e9m\u00e1s Alpine verzi\u00f3k alapj\u00e1n k\u00e9sz\u00fclt Docker k\u00e9pekben. A sebezhet\u0151s\u00e9g kihaszn\u00e1l\u00e1sa a k\u00f6rnyezett\u0151l f\u00fcgg, mivel a sikerhez egy, a k\u00fclvil\u00e1g fel\u00e9 megnyitott szolg\u00e1ltat\u00e1sra vagy alkalmaz\u00e1sra van sz\u00fcks\u00e9g, amely Linux PAM-ot vagy m\u00e1s hasonl\u00f3 mechanizmust haszn\u00e1l.\u201d<\/p><\/blockquote>\n<p>\nA probl\u00e9ma <noindex><a rel=\"nofollow\" href=\"https:\/\/alpinelinux.org\/posts\/Docker-image-vulnerability-CVE-2019-5021.html\">eliminates<\/a><\/noindex> az Alpine 3.6.5, 3.7.3, 3.8.4, 3.9.2 \u00e9s edge (20190228 snapshot) verzi\u00f3iban, a probl\u00e9m\u00e1s k\u00fcllemben l\u00e9v\u0151 k\u00e9pek tulajdonosainak pedig azt javasolt\u00e1k, hogy kommentezz\u00e9k ki a root sor\u00e1t a <code>\/etc\/shadow<\/code> vagy gy\u0151z\u0151djenek meg arr\u00f3l, hogy a <code>linux-pam<\/code>.<\/p>\n<h2>csomag nincs telep\u00edtve.<\/h2>\n<p>\nFolytat\u00e1s a Docker Hub-ra <noindex><a rel=\"nofollow\" href=\"https:\/\/gist.github.com\/jgamblin\/fd94d9078709fe68d13f36f82c29fdab\">Bash-script<\/a><\/noindex>Jerry Gamblin k\u00edv\u00e1ncsi volt arra, \u201emennyire elterjedt lehet a null jelszavak haszn\u00e1lata a kont\u00e9nerekben\u201d. Ennek \u00e9rdek\u00e9ben \u00edrt egy kicsit<\/p>\n<ul>\n<li> , amelynek l\u00e9nyege nagyon egyszer\u0171:<\/li>\n<li> curl k\u00e9r\u00e9s seg\u00edts\u00e9g\u00e9vel lek\u00e9ri a Docker Hub-on tal\u00e1lhat\u00f3 k\u00e9pek list\u00e1j\u00e1t; <code>jq seg\u00edts\u00e9g\u00e9vel a list\u00e1t rendezni kell a<\/code>n\u00e9pszer\u0171s\u00e9g<\/li>\n<li> szerint, m\u00edg az \u00edgy kapott eredm\u00e9nyek k\u00f6z\u00fcl az els\u0151 ezret megtartj\u00e1k; <code>docker pull<\/code>;<\/li>\n<li> minden egyes k\u00e9pn\u00e9l v\u00e9grehajt\u00e1sra ker\u00fcl <code>docker run<\/code> a Docker Hub-b\u00f3l kapott k\u00e9pek egyik\u00e9n olvasva az els\u0151 sort; <code>\/etc\/shadow<\/code>;<\/li>\n<li> ha az \u00e9rt\u00e9k egyenl\u0151 <code>root:::0:::::<\/code>, a k\u00e9p neve egy k\u00fcl\u00f6n f\u00e1jlba ker\u00fcl ment\u00e9sre.<\/li>\n<\/ul>\n<p>\nMi sz\u00fcletett teh\u00e1t? A <noindex><a rel=\"nofollow\" href=\"https:\/\/gist.github.com\/jgamblin\/6015a2020c1de3bc3aab19b361573b7f\">f\u00e1jlban<\/a><\/noindex> Kider\u00fclt, hogy 194 n\u00e9pszer\u0171 Docker-k\u00e9p tal\u00e1lhat\u00f3 Linux rendszerekkel, ahol a root felhaszn\u00e1l\u00f3nak nincs be\u00e1ll\u00edtott jelszava:<\/p>\n<blockquote><p>\u201eA lista legnevesebb nevei k\u00f6z\u00f6tt szerepel a govuk\/govtpaas, hashicorp, microsoft, monsanto \u00e9s mesosphere. A kylemanna\/openvpn a lista legn\u00e9pszer\u0171bb kont\u00e9nere, statisztik\u00e1i szerint t\u00f6bb mint 10 milli\u00f3 pullt \u00e9rt el.\u201d<\/p><\/blockquote>\n<p>\n\u00c9rdemes eml\u00e9keztetni arra, hogy ez a jelens\u00e9g \u00f6nmag\u00e1ban nem jelent k\u00f6zvetlen biztons\u00e1gi sebezhet\u0151s\u00e9get a rendszerekben, amelyek haszn\u00e1lj\u00e1k \u0151ket: minden att\u00f3l f\u00fcgg, hogy pontosan hogyan alkalmazz\u00e1k \u0151ket. <i>(l\u00e1sd a fent eml\u00edtett Alpine esetre vonatkoz\u00f3 megjegyz\u00e9st)<\/i>Mindazon\u00e1ltal a t\u00f6rt\u00e9net tanuls\u00e1g\u00e1t m\u00e1r sokszor l\u00e1ttuk: a l\u00e1tsz\u00f3lagos egyszer\u0171s\u00e9g gyakran rendelkezik h\u00e1tr\u00e1nyos oldallal, amelyre mindig \u00e9rdemes figyelni, \u00e9s amelynek k\u00f6vetkezm\u00e9nyeit figyelembe kell venni a technol\u00f3gia alkalmaz\u00e1s\u00e1ban.<\/p>\n<h2>P.S.<\/h2>\n<p>\nOlvasson tov\u00e1bbi inform\u00e1ci\u00f3kat a blogunkban:<\/p>\n<ul>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/337448\/\">Statisztika az alapvet\u0151 oper\u00e1ci\u00f3s rendszerekr\u0151l a Docker Hub k\u00e9peiben.<\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/440504\/\">Docker \u00e9s Kubernetes biztons\u00e1g\u00e9rz\u00e9keny k\u00f6rnyezetekben<\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/439964\/\">A CVE-2019-5736 sebezhet\u0151s\u00e9g a runc-ban, amely lehet\u0151v\u00e9 teszi a root jogok megszerz\u00e9s\u00e9t a gazdag\u00e9pen.<\/a><\/noindex>\u00bb;<\/li>\n<li> \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/337154\/\">Sebezhet\u0151 Docker VM \u2013 Docker \u00e9s penetr\u00e1ci\u00f3s tesztel\u00e9s virtu\u00e1lis masina<\/a><\/noindex>\u00bb.<\/li>\n<\/ul>\n<p>Forr\u00e1s: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/company\/flant\/blog\/452754\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412 \u043c\u0438\u043d\u0443\u0432\u0448\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443, 18 \u043c\u0430\u044f, Jerry Gamblin \u0438\u0437 Kenna Security \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b 1000 \u0441\u0430\u043c\u044b\u0445 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u0441 Docker Hub \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u0432 \u043d\u0438\u0445 \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root. \u0412 19% \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043e\u043d \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043f\u0443\u0441\u0442\u044b\u043c. \u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f \u0441 Alpine \u041f\u043e\u0432\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u043c\u0438\u043d\u0438-\u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043b \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0430\u043d\u0435\u0435 \u0432 \u044d\u0442\u043e\u043c \u043c\u0435\u0441\u044f\u0446\u0435 Talos Vulnerability Report (TALOS-2019-0782), \u0430\u0432\u0442\u043e\u0440\u044b \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0435 Peter [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[688],"tags":[],"class_list":["post-34141","post","type-post","status-publish","format-standard","hentry","category-administrirovanie"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412 \u043c\u0438\u043d\u0443\u0432\u0448\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443, 18 \u043c\u0430\u044f, Jerry Gamblin \u0438\u0437 Kenna Security \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412 19% \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0435\u0439\u0448\u0438\u0445 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043d\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043b\u044f root | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412 \u043c\u0438\u043d\u0443\u0432\u0448\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443, 18 \u043c\u0430\u044f, Jerry Gamblin \u0438\u0437 Kenna Security \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T18:56:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T18:56:37+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47A legn\u00e9pszer\u0171bb Docker-k\u00e9pek 19%-\u00e1ban nincs jelsz\u00f3 a root sz\u00e1m\u00e1ra | ProHoster","description":"A m\u00falt szombaton, m\u00e1jus 18-\u00e1n, Jerry Gamblin a Kenna Security-t\u0151l ellen\u0151rizte.","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412 19% \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u0435\u0439\u0448\u0438\u0445 Docker-\u043e\u0431\u0440\u0430\u0437\u043e\u0432 \u043d\u0435\u0442 \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043b\u044f root | ProHoster","og:description":"\u0412 \u043c\u0438\u043d\u0443\u0432\u0448\u0443\u044e \u0441\u0443\u0431\u0431\u043e\u0442\u0443, 18 \u043c\u0430\u044f, Jerry Gamblin \u0438\u0437 Kenna Security \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b.","og:url":"https:\/\/prohoster.info\/hu\/blog\/administrirovanie\/v-19-populyarnejshih-docker-obrazov-net-parolya-dlya-root","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T18:56:37+00:00","article:modified_time":"2019-10-31T18:56:37+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"34141","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-21 18:05:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 23:13:00","updated":"2026-01-21 18:05:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/34141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=34141"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/34141\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=34141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=34141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=34141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}