Weird “hackage” of page
-
Hello, I am administrator of simple, company page. Contact, few news and thats all. Nothing special. But page was “hacked” about 5 times in last two months. And there the fun begins.
Website is protected by Wordfence, with two or three other “logging” plugins (f.e. File Changes Monitor). Attack mechanism is unknown for me. Something creates one php file in main folder of WordPress, adds itself to wp-config, creates folder “assets” in wp-content/uploads and there downloads files – one db file with multiple IPs and last time there were some templates with random names.
I’ve checked checksums for WordPress files – they seem fine, database seems to be clean, passwords for FTP/database/Wordpress are strong (25+ characters) and no otherr visible malicoius code. And every week or two there are new files… I’ve even disabled XLM-RPC, with no luck.
Now something about malware – it is PHP file, named wp-wpdb.php. When I first googled about this – I haven’t found anything. Now if you google that, you will find my post. This file checks user agent and redirection. If it detects web crawler – it displays page with medical content, if detects redirection from search engine – it replaces content with js which redirects to some “pharma” websites. If there aren’t any of these – it will normally display page. Malware isn’t any base64 encoded etc – it is plain text, about 300 lines of code.
Reassuming all above – does anyone have idea how website could be attacked and maybe how to prevent that? For now I have recreated page from scratch and redirected domain to new page, with all protectors from attacked site (plugins etc).
If you have any questions – ask, I’ll reply ??
- The topic ‘Weird “hackage” of page’ is closed to new replies.