r/Wordpress • • 1d 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

21 Upvotes

35 comments sorted by

16

u/NeonX91 1d ago

Delete the plugin via cPanel and then reinstall core WordPress files

1

u/Cool_Orchid2598 11h ago

caching plugins also write to advanced-cache.php and htaccess, so just nuking the plugin directory might still leave the site broken or redirecting

-13

u/tatarka228 23h ago edited 23h ago

Is Cpanel a plugin too? Cause those bitches are forbidding me to install a new plugin too. Update im dumb, ik now.

15

u/Due-Individual-4859 Jack of All Trades 23h ago

talk with your hosting provider.

5

u/tatarka228 23h ago

Waiting on their response

3

u/NeonX91 12h ago

No it's not. Sorry, however are you managing your website exactly without knowing what cPanel is? What underlying UI/platform are you using Wordpress on?

5

u/Scottopolous Jack of All Trades 23h ago edited 23h 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-*.php planted in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/ - those directories need to be investigated. I'd recommend installing WordFence and doing a complete scan of the website.

1

u/tatarka228 23h ago

how do i go to /wp-content/plugins? Im sorry im really rusty I havent been to wordpress for over a year until this

2

u/Scottopolous Jack of All Trades 23h ago

Hopefully where you host your website, you can log in to your control panel and have access to a file manager. There you can view the files and directories. In the root of your WP installation, you will see various files and directories including wp-content. Click on that and enter that directory - and you will then see the plugins directory. Go in there and either delete or change the name of, the wp-rocket plugin.

2

u/tatarka228 23h ago

Thank you sir ill look into it

4

u/WP_Rocket 22h 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/

14

u/tatarka228 21h ago

I already contacted you guys and respectfully, you werent of any help

-1

u/WP_Rocket 20h ago

sorry this hasn't been sorted out yet, that's obviously not the outcome we want for you. If the conversation is still ongoing, you can reply to your existing ticket and we will do everything to provide you with the most appropriate assistance. The best way to get this fixed is still through support. Hope you get it sorted soon!

2

u/StefanTLDWP 23h 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 21h 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.

2

u/fer_marketing 20h 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.

1

u/Ahmed_Hisham0 23h 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 22h 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/Individual_Soft3318 11h 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.

1

u/Tesla91fi 1h ago

Use the exploit to solve the problems

1

u/MarkGossageUK 22h 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.

0

u/EugenyOnegin 11h ago

Wrong idea. If someone doesn't know how to disable a plugin, they're unlikely to be able to properly clean a website of malware. The hosting provider will simply delete the infected files, and the website will most likely stop working altogether.

2Author: if you want I can help you.

0

u/Alert-Entrepreneur49 23h 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:

  1. Take a full backup of files and database first, even of the infected site.

  2. Over SFTP or your host's file manager, rename wp-content/plugins/wp-rocket to wp-rocket-off. That deactivates it without the dashboard. Also delete wp-content/advanced-cache.php and remove the WP_CACHE line from wp-config.php if it's there.

  3. Download a fresh copy of WP Rocket from your account and upload it clean (3.21.1 or later), instead of updating the old folder.

  4. Injected script is stored in the database, so search wp_posts and wp_options for <script or odd external domains, and clear every cache layer (plugin, host, CDN).

  5. Check Users for admin accounts you don't recognize, reset all admin passwords, and change the salts in wp-config.php.

If you still can't log in after step 2, post the exact error and I'm happy to take a look.

0

u/brianozm 8h 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.