- Jul 5, 2020
- 37
- 69
- 18
I know this post helped some people, so i'm getting it back up. Hope it helps!
(This is a repost of my post before Babiato crashed, i had a copy.)
Malware redirect campaign
Yesterday 2 of my client sites got infected by redirect malware . So i just wanted to tell everyone to be careful, and check your Wordpress sites.My friend also contacted me and said that few of his sites got infected.
When checking if it's infected, make sure that you're visiting in incognito mode, and not logged in. Malware is detecting if you're logged in as admin or editor and simply won't redirect to stay hidden as long as possible.
You can also use https://sitecheck.sucuri.net/ to check if your site is infected.
My website is infected, how to fix it!?
Malware is working as a hidden plugin. So you have to use FTP or file manager on your hosting to remove plugin and phpMyAdmin or Adminer to remove it's database entry.- Open your sites FTP / File manager and go to ./wp-content/plugins
- Find plugin called "zend-fonts-wp" and remove it - Once plugin is removed, redirect should stop as well
- Remove cookies and cache from you browser - In your browser, click on small lock icon next to url, click on Cookies and remove all of them.
- Open phpMyAdmin or Adminer and log in to your database - You can find database username and pass in ./wp-config file
- In database, find tables "wusers_inputs" and "wzen_time_table", and drop (delete) them.
- Change password of all admin and editor accounts - Visit your-site.com/wp-admin/users.php and for every administrator / editor click Edit > Set new password, and Log out everywhere else > Update profile
- Update all plugins, themes and Wordpress!
- (Suggested) Scan site with Sucuri or Wordfence
Unfortunately i did not manage to find which plugin or theme caused my site to get infected, but here are the plugins and theme i used:
- Theme
- Hello Elementor
- Plugins
- Elementor
- Elementor Pro
- JetElements For Elementor
- Woocommerce
Also, i hope this post will help the community to get rid of malware on infected sites.
*EDIT*
As xeric said
Make a .htaccess file in your /wp-includes/ and /wp-content/uploads/ directory with this text in it
<Files *.php>
deny from all
</Files>