{"id":4301,"date":"2014-09-25T22:27:03","date_gmt":"2014-09-25T14:27:03","guid":{"rendered":"https:\/\/www.icocean.com\/blog\/?p=4301"},"modified":"2014-09-25T22:27:03","modified_gmt":"2014-09-25T14:27:03","slug":"bash-shell%e5%8f%91%e7%8e%b0%e4%b8%a5%e9%87%8d%e5%ae%89%e5%85%a8%e6%bc%8f%e6%b4%9e","status":"publish","type":"post","link":"https:\/\/www.icocean.com\/blog\/?p=4301","title":{"rendered":"Bash shell\u53d1\u73b0\u4e25\u91cd\u5b89\u5168\u6f0f\u6d1e"},"content":{"rendered":"<p>Unix\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\u5e7f\u6cdb\u4f7f\u7528\u7684GNU Bourne Again Shell(Bash)\u53d1\u73b0\u4e86\u4e00\u4e2a<a href=\"http:\/\/arstechnica.com\/security\/2014\/09\/bug-in-bash-shell-creates-big-security-hole-on-anything-with-nix-in-it\/\" target=\"_blank\"><span style=\"text-decoration: underline;\">\u5141\u8bb8\u8fdc\u7a0b\u6267\u884c\u4ee3\u7801\u7684\u4e25\u91cd\u5b89\u5168\u6f0f\u6d1e<\/span><\/a>\u3002\u8be5<a href=\"http:\/\/web.nvd.nist.gov\/view\/vuln\/detail?vulnId=CVE-2014-6271\" target=\"_blank\"><span style=\"text-decoration: underline;\">\u6f0f\u6d1e<\/span><\/a>\u662f<a href=\"http:\/\/stephane.chazelas.free.fr\/\" target=\"_blank\"><span style=\"text-decoration: underline;\">Stephane Schazelas<\/span><\/a>\u53d1 \u73b0\u7684\uff0c\u4e0eBash\u5904\u7406\u6765\u81ea\u64cd\u4f5c\u7cfb\u7edf\u6216\u8c03\u7528Bash\u811a\u672c\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u73af\u5883\u53d8\u91cf\u6709\u5173\u3002\u5982\u679cBash\u662f\u9ed8\u8ba4\u7684\u7cfb\u7edfshell\uff0c\u7f51\u7edc\u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001Web\u8bf7 \u6c42\u3001secure shell\u3001telnet\u4f1a\u8bdd\u6216\u5176\u5b83\u4f7f\u7528Bash\u6267\u884c\u811a\u672c\u7684\u7a0b\u5e8f\u653b\u51fb\u670d\u52a1\u5668\u548c\u5176\u5b83Unix\u548cLinux\u8bbe\u5907\u3002<\/p>\n<p>\u8be5\u6f0f\u6d1e\u5728\u5f71\u54cd\u8303\u56f4\u4e0a\u4e0eHeartbleed\u6f0f \u6d1e\u76f8\u5f53\uff0c\u5728\u5371\u9669\u7a0b\u5ea6\u4e0a\u4e5f\u8bb8\u6ca1\u6709Heartbleed\u9ad8\u3002\u6f0f\u6d1e\u5f71\u54cdGNU Bash v1.14\u5230v4.3\uff0c\u4e3b\u8981Linux\u53d1\u884c\u7248\u5982Red Hat Enterprise Linux (v4\u52307)\u3001Fedora\u3001CentOS\u3001Ubuntu\u548cDebian\u90fd\u5df2\u7ecf\u53d1\u5e03\u4e86\u8865\u4e01\u3002<\/p>\n<p>\u4f46\u8865\u4e01\u5c1a\u672a<a href=\"https:\/\/bugzilla.redhat.com\/show_bug.cgi?id=1141597#c24\"><span style=\"text-decoration: underline;\">\u5b8c\u5168\u4fee\u590d\u95ee\u9898<\/span><\/a>\u3002\u4f60\u53ef\u4ee5\u8f93\u5165\u547d\u4ee4env x='() { :;}; echo vulnerable&#8217; bash -c &#8220;echo this is a test&#8221;\u6d4b\u8bd5\u4f60\u7684\u7cfb\u7edf\u662f\u5426\u5b58\u5728\u6f0f\u6d1e\uff0c\u5982\u679c\u5b58\u5728\u6f0f\u6d1e\u4f1a\u8fd4\u56de\u201cvulnerable this is a test\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unix\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\u5e7f\u6cdb\u4f7f\u7528\u7684GNU Bourne Again Shell(Bash)\u53d1\u73b0\u4e86\u4e00\u4e2a\u5141\u8bb8\u8fdc <a href='https:\/\/www.icocean.com\/blog\/?p=4301' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[4022,1294,4023,1370],"class_list":["post-4301","post","type-post","status-publish","format-standard","hentry","category-linuxunix","tag-bash","tag-shell","tag-vulnerability","tag-1370","category-16-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4301"}],"version-history":[{"count":1,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4301\/revisions"}],"predecessor-version":[{"id":4302,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4301\/revisions\/4302"}],"wp:attachment":[{"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.icocean.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}