{"id":758,"date":"2014-09-25T18:49:48","date_gmt":"2014-09-25T18:49:48","guid":{"rendered":"http:\/\/paulgurney.com\/whats_new_blog\/?p=758"},"modified":"2014-09-25T18:50:11","modified_gmt":"2014-09-25T18:50:11","slug":"test-for-the-shellshock-bug-in-bash","status":"publish","type":"post","link":"https:\/\/paulgurney.com\/whats_new_blog\/2014\/09\/test-for-the-shellshock-bug-in-bash\/","title":{"rendered":"Test for the Shellshock bug in BASH"},"content":{"rendered":"<p>From <a title=\"bash bug Shellshock\" href=\"http:\/\/arstechnica.com\/security\/2014\/09\/bug-in-bash-shell-creates-big-security-hole-on-anything-with-nix-in-it\/\" target=\"_blank\">ArsTechnica<\/a>:<\/p>\n<p>There is an easy test to determine if a Linux or Unix system is vulnerable. To check your system, from a command line, type:<\/p>\n<pre>env x='() { :;}; echo vulnerable' bash -c \"echo this is a test\"<\/pre>\n<p>If the system is vulnerable, the output will be:<\/p>\n<pre><span style=\"color: #ff0000;\">vulnerable\r\n this is a test\r\n<\/span><\/pre>\n<p>An unaffected (or patched) system will output:<\/p>\n<pre><span style=\"color: #ff0000;\"> bash: warning: x: ignoring function definition attempt\r\n bash: error importing function definition for `x'\r\n this is a test\r\n<\/span><\/pre>\n<p>The fix is an update to a patched version of the Bash shell. To be safe, administrators should do a blanket update of their versions of Bash in any case.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>From ArsTechnica: There is an easy test to determine if a Linux or Unix system is vulnerable. To check your system, from a command line, type: env x='() { :;}; echo vulnerable&#8217; bash -c &#8220;echo this is a test&#8221; If the system is vulnerable, the output will be: vulnerable this is a test An unaffected &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/paulgurney.com\/whats_new_blog\/2014\/09\/test-for-the-shellshock-bug-in-bash\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Test for the Shellshock bug in BASH&#8221;<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[27,19,22,9],"tags":[],"class_list":["post-758","post","type-post","status-publish","format-standard","hentry","category-computers-mac","category-computers-windows","category-security","category-webhosting"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p415hC-ce","_links":{"self":[{"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/comments?post=758"}],"version-history":[{"count":1,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":759,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/posts\/758\/revisions\/759"}],"wp:attachment":[{"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/media?parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/categories?post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulgurney.com\/whats_new_blog\/wp-json\/wp\/v2\/tags?post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}