r/Wordpress • u/tatarka228 • 3d ago
WPRocket exploit
My website has been exploited by the WProcket exploit, I cant deactivate the plugin nor can I update it, I dont know what to do. Please help
31
Upvotes
22
u/NeonX91 3d ago
Delete the plugin via cPanel and then reinstall core WordPress files
5
u/Scottopolous Jack of All Trades 3d ago edited 3d ago
You can deactivate the plugin by using the file manager in your hosting panel.
Go to /wp-content/plugins and either rename the plugin from wp-rocket to wp-rocket-OFF - this will deactivate the plugin. You can also fully delete it from this directory as well.
I have not used WP Rocket for quite some time now so I am not familiar with the exploit, but there may be some other things you will need to do to confirm the integrity of the rest of your WordPress files and database.
EDIT TO ADD: It appears if your site has been exploited, there are likely php files installed - PHP files named
wp-media-*.phpplanted inwp-content/wp-rocket-config/,wp-content/uploads/orwp-content/ - those directories need to be investigated. I'd recommend installing WordFence and doing a complete scan of the website.5
u/fer_marketing 3d ago
Renaming the folder stops the plugin, but also look outside WordPress before you call it clean. Check the cron jobs in your hosting panel for anything you didn't add, and scan the whole account, not just public_html. I've found backdoors at the server level that WordPress scanners never see, and they bring the infection back.
2
u/StefanTLDWP 3d ago
You need to remove the wp-rocket folder from your hosting (cPanel, Plesk or some other hosting panel), usually with a File Manager, sometimes via FTP/SFTP.
At minimum, you should also install a free version of Wordfence, configure it to scan everything and run a full scan.
Make sure that WP, themes and plugins are fully updated, and let us know how it goes.
You don’t seem very tech-savvy, so if you’re struggling with any of the steps, let us know your hosting company or the issues you’re experiencing on other steps.
2
u/TopSydeWP 3d ago
Once you're back in the dashboard, open Users, click each admin and scroll down to Application Passwords. Revoke anything you don't recognize. We find these left behind on hacked sites because they keep working after every password is changed, which lets the attacker quietly get back in later.
5
u/WP_Rocket 3d ago
Hi, we are very sorry about what happened with your website. The vulnerability was fixed in 3.24.2, however, since you indicate that you can't perform the update, please contact our support team as soon as you can and we will help you resolve this! https://wp-rocket.me/contact/
1
u/Tesla91fi 2d ago
Use the exploit to solve the problems
3
u/Individual_Soft3318 3d ago
scan your site and database for any signs of malware/hacking and move any suspected files into the Quarantine [DO NOT DELETE]. https://wp-sentinel.co.uk is a free and open-source anti-malware toolkit.
2
u/MarkGossageUK 3d ago
I'd contact your hosting provider and ask them to run a full malware scan. Removing the affected plugin might not remove everything the attacker has left behind. You'll also want to check for unknown admin accounts and change your passwords once the site is clean.
1
u/Ahmed_Hisham0 3d ago
if you can't deactivate it from the plugins screen, rename the folder over sftp: wp-content/plugins/wp-rocket to wp-rocket-off. that kills it instantly and you can get back into admin.
then check for a new admin user, and look in wp-content/mu-plugins and wp-config for anything that wasn't there before. these usually come with a second payload.
after that, delete the folder properly and install a fresh copy. reinstalling over a compromised folder keeps whatever they planted.
1
u/thomas-at-caseproof 3d ago
If the dashboard won't let you deactivate it, go around the dashboard. Over SFTP or your host's file manager, rename wp-content/plugins/wp-rocket to something like wp-rocket-off, and WordPress will deactivate it on its own because the folder is gone. I'd also delete wp-content/advanced-cache.php (WP Rocket's caching runs from that file even with the plugin off) and set WP_CACHE to false in wp-config.php if it's defined there.
Then the less fun part. Updating to 3.24.2 or later closes the hole, but it doesn't remove anything the attacker already wrote. Look for unfamiliar PHP files in wp-content/cache, wp-content/uploads, and directly in wp-content (wp-media-*.php names have been turning up), and check for admin users you didn't create. If you find anything, the honest fix is a restore from a backup taken before Nov 25, or a clean reinstall of core and every plugin, followed by new database credentials and salts. If your host offers a malware scan or cleanup, this is the moment to use it, since they can see files and logs you can't from wp-admin.
Don't skip that second part just because the site looks normal afterward. These drops are built to look normal.
1
u/Proud_Process3017 2d ago
Renaming the plugin folder stops it from running, but treat the site as compromised until you've checked further.
If you skip step 3, it usually comes back within days.
1
u/TheGodOfKhaos 2d ago
Things like this are one of the biggest reasons I learned how to manage my own web server. All the nuances of server management have helped me along the way, whether it was preventing hacking attempts or mitigating the damage when they did happen.
I also completely agree with those saying to make sure you have site backups. Setting up automated backups is probably a good idea if you're not keen on doing them manually. However, make sure you store those backups off-site. If your server is compromised, having your backups stored on the same server could leave you in a pretty bad situation.
1
u/garliconionbee 2d ago
Dang. I didn't know this was a thing. Now it makes sense.
1
u/ruin_dono 2d ago
Quick question here .
If the user had a older backup . Can't we just purge and reinstall wordpress and import the backup without the wp rocket plugin ?
1
u/linuxboy2205 1d ago
If you can't deactivate or update the plugin, your site may already have compromised files or admin access. Start by putting the site in maintenance mode, taking a backup for investigation, and contacting your hosting provider to scan and clean the infection. Also, check for unfamiliar admin accounts and suspicious files. Once the site is clean, update WordPress, all plugins, and themes, and change your hosting, FTP, and WordPress passwords.
1
u/brianozm 3d ago
If you’re not updating the plugins and software on your site, scanned become impossible for you to run a WordPress website. Security problems are coming out so often at the moment that you’ll find yourself getting hacked literally all the time.
I realise this can be hard if you haven’t done this sort of thing before. YouTube can you offer some good guidance, and if you look around a bit, you might be able to find someone willing to update your site. Probably the real fix for you is to move your side to some form of managed WordPress hosting where they actually do your upgrades for you so that you don’t have to worry about them. Obviously it does cost a bit more, but without it your site absolutely will get hacked into oblivion regularly.
Also, make sure you have some form of site backup happening and it would be a great idea to download a backup regularly to safeguard against hacking.
0
u/Alert-Entrepreneur49 3d ago
Sorry you're dealing with this. If it's the WP Rocket hole from this fall (CVE-2026-5934, an unauthenticated stored XSS in versions up to 3.21.0.1, fixed in 3.21.1), here's what usually gets you unstuck when the dashboard won't let you touch the plugin:
If you still can't log in after step 2, post the exact error and I'm happy to take a look.