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

48 comments sorted by

22

u/NeonX91 3d ago

Delete the plugin via cPanel and then reinstall core WordPress files

3

u/CmdWaterford 2d ago

Oh Jesus... everyday the same nonsense here - disabling the plugin alone is not enough OP. It is more than likely that there will be dozens of malicious PHP files and Scripts within the DB. Seek professional help!

1

u/Cool_Orchid2598 3d 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

-14

u/tatarka228 3d ago edited 3d ago

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

16

u/Due-Individual-4859 Jack of All Trades 3d ago

talk with your hosting provider.

5

u/tatarka228 3d ago

Waiting on their response

3

u/NeonX91 3d 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 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-*.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 3d 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

3

u/Scottopolous Jack of All Trades 3d 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 3d ago

Thank you sir ill look into it

1

u/jazir55 2d ago

I would recommend giving ChatGPT/Claude/pick your agent SSH access and tell it to do an investigation into the malware and remediate it, then do a second sweep in fresh context in another pass. I've had them remediate multiple hacked sites, no recurrence.

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.

1

u/tatarka228 2d ago

Thank you

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.

1

u/tatarka228 2d ago

Thank you ill look into it

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.

1

u/tatarka228 2d ago

Thank you

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/

15

u/tatarka228 3d ago

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

0

u/WP_Rocket 3d 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!

1

u/Tesla91fi 2d ago

Use the exploit to solve the problems

1

u/tatarka228 2d ago

well unfortunately i dont have that kind of smarts

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/[deleted] 3d ago

[removed] — view removed comment

1

u/Wordpress-ModTeam 2d ago

As per rule 1, we don't allow advertising or promotion of products/services in this sub. Please read the rules before commenting/posting.

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.

  1. Take a copy of everything as it is now (files + DB), so you can look at it later.
  2. Replace WP core and every plugin/theme with fresh copies from the official sources, don't just update in place.
  3. Look for PHP files in wp-content/uploads (there shouldn't be any), unknown admin users in the database, and odd entries in wp_options and cron. you can use AI to findout if a file is healthy or not
  4. Check the access logs around the time it started, to confirm WP Rocket was really the way in.
  5. Then change all passwords: WP admins, hosting, SFTP, database, and the salts in wp-config.php.

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:

  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.