Hi,
Even though a lot of effort has gone into developing this plugin to protect your site, sites might still get hacked. In that case the following URLs will help you. These are instructions provided by WordPress org support staff.
– My Site was hacked
– Hardening WordPress
Aside from the above two links you should also carry out the following to clean your site. ( Steps provided by wpsolutions)
– Using cpanel file manager delete your wp-admin and wp-includes directories and then upload new versions from a fresh zip file of your WordPress core version.
– Delete all plugins and re-install fresh new versions. Also do not use old zip files you have on your computer or server. Always get new plugins directly from wordpress.org or from the developer who wrote them. (Same goes for your theme)
– Also go through your root directory and replace all wp core files with new versions and delete any unknown files. Check your wp-config.php file for any suspicious code.
– Go through all other wp directories such as uploads etcβ¦and check to see if any suspicious php files are there. (eg, uploads directories should mostly have media files and not php files)
– Examine all of your server directories which reside outside of your WordPress installation and look for php files.
The above should help you get your site up and running and clean from any viruses.
Kind regards
Thanks for the tips. This does not appear to be a hack to me. I’ve been building WP sites for 15 years and have always hardened the sites. None have ever been hacked. I have fixed other sites that have been hacked. I know, there is always a first time.
I’ll go through all the actions you offered, but I suspect this will be back next week.
The odd part is the file named .htaccess.admin_edit_htaccess_too_big. I cannot find any info about it anywhere. I suspect something is trying to update the .htaccess files, which are only about 9k to 11k in size for each site.
Hi,
The odd part is the file named .htaccess.admin_edit_htaccess_too_big. I cannot find any info about it anywhere. I suspect something is trying to update the .htaccess files, which are only about 9k to 11k in size for each site.
Unfortunately that file does not come from our plugin. Check your cron jobs, see if that might help you.
I believe this is not related to our plugin.
Regards
I only have a couple of simple cron jobs running. I’ve checked those. There is no unusual code and the last saved date for the scripts on the server is several years ago.
However, thus far this appears to be a scheduled event. Your plugin is the only one common to all these sites, so I had to ask.
If I find the source of the problem, I’ll post it here for others.
@wpdogger
This might be the issue you’re experiencing:
https://wordpress.org/support/topic/server-500-on-godaddy-shared/
There’s a closing </IfModule> that wasn’t opened in the .htaccess. Resave the firewall rules in the plugin then edit the .htaccess as indicated by @mbrsolution
I was getting a 403 a while back on my sites and found the 5G Firewall in .htaccess was causing it. I disabled the 5G firewall in the settings and it was back to normal.
Thanks for the tips, guys.
I saw the thread about the 500 error. I did check that and didn’t find any duplicate closing tag in the .htaccess file. Something was trying to re-write the .htaccess file, which is what generated the error. It shouldn’t be doing that with no one in the admin updating the settings.
I don’t have the 5G firewall enabled on any of the sites.
This isn’t a random 403 error. All of my WP sites went down simultaneously in the middle of the night — and it did it twice, both times very early Sunday morning. The .htaccess files were corrupted and the strange file was left in the root. The file appears to contain the original copy of the .htaccess file.
The error file could be coming from WP, or Apache, of Linux, or PHP. I’m genuinely surprised there is no information about that file name on the web.
I’m also surprised that hundreds — if not thousands — of sites are not reporting this. There is nothing unique about my sites. I’ve only heard about one other site that experienced this.
I’ve gone through the databases and the sites looking for something malicious. I’m now going to replace all the WP, theme, and plugin files.
If anyone finds any additional info, I’m all ears.
@mbrsolution, please keep this thread open. I see no evidence that it’s your plugin causing the problem, but the feedback is good.
@wpdogger, no problem. I will keep the thread open.
Regards
I think I figured this out after I replaced all the WP scripts, all the active plugins (many were now obsolete and abandoned so I removed them), the Genesis theme files, and regenerated the .htaccess file from scratch.
I believe the .htaccess.admin_edit_htaccess_too_big message is due to a combination of a new bug in cPanel and old IPs I had blocked in cPanel using IP Blocker. Each corrupted .htaccess file ended with the following directive. This directive does not show up in any of the newly generated .htaccess files.
<Files 403.shtml>
order allow, deny
allow from all
</Files>
This is used by cPanel to block IPs manually entered in IP Blocker. WP Security uses a different method to block blacklisted IPs. It should only be there if you have blocked IPs in cPanel. I have done that in the past. The 403 problem appears to occur if there is no list of denied IPs following the directive. I checked cPanel and there are currently no IPs blocked, which means GoDaddy either wiped out the list or they are not being displayed. I think cPanel is running a routine to update .htaccess files and is creating the problem when no blocked IPs exist in cPanel, yet the old directive still exists in the .htaccess files. A rep I talked to at GoDaddy admitted a scheduled update routine on the server could be at fault.
All the sites went down early on Sunday morning for the past two weeks. The big test will be if they go down again this coming Sunday.
If anyone else experiences this, I suggest you remove the Files 403.shtml directive from the .htaccess file, any deny statements that follow it, and all IPs you may have blocked in IP Blocker. At this point I’m about 90% sure that will fix the problem.
-
This reply was modified 4 years, 6 months ago by
WPDogger.
-
This reply was modified 4 years, 6 months ago by
WPDogger.
Thank you for sharing your findings. This will help others having the same issue as you. From what I read above, this issue is related to GoDaddy host.
I am marking this thread as resolved.
Regards
Did you ever confirm this IP problem was the issue? I have this problem currently on two separate cPanel installs. These hosting accounts’ singular purpose is to host these .htaccess files for 301 redirect purposes. Yet they continue to get overwritten in this same manner. Any other thoughts?