What WordPress.org's release hold caught this week, and what it can't
WordPress.org's release hold stopped a backdoor before it reached a single site. It can't help with a bug that sites already run, and attackers found one in WP Rocket the same week.
By Tom Morton, Six Foot 3
A backdoor almost went out to six WordPress plugins last week, and WordPress.org's new release hold stopped it. Three days later, attackers started to use a critical bug in WP Rocket. No release hold could have stopped that one.
The backdoor that stayed in the hold
On November 22, an attacker used the WP connect developer's WordPress.org account to push new releases of six plugins, including Air WP Sync and WP Sync for Notion. Wordfence estimates the six have more than 3,600 active installations. Each release added a module that took orders from the attacker's server. Any site that installed one would have given the attacker full control of the site and its server.
None of the releases reached a site. Since June, WordPress.org holds each new plugin release for a while before automatic updates send it out. During the hold, Gandalf, WordPress.org's automated reviewer, found the malicious code and stopped the releases. The plugins team closed all six plugins the same evening.
The bug the hold can't catch
The hold checks new code before it ships. The WP Rocket bug was in code that sites already ran. In versions before 3.24.2, an attacker who is not logged in can make the site save a PHP file and run it. A site is open to this only when "LazyLoad for CSS background images" or "Host Fonts Locally" is turned on, and both are off by default. Patchstack saw the first attack on November 25 and blocked tens of thousands of attempts the next day.
I'd treat this as same-day work. Check every site you manage that runs WP Rocket, including the ones you didn't set up yourself, because a client or another developer may have turned on one of those features.
What to do this week
For WP Rocket:
- Update to 3.24.2 today.
- Where you can't update today, turn off both features until you can.
- The update doesn't remove files that an attacker already planted. Look for unexpected PHP files in
wp-content,wp-content/uploads/andwp-content/wp-rocket-config/, such aswp-media-*.php.
For the WP connect plugins, check that no site runs one of the backdoored versions in Wordfence's list. The release before each one is clean. Treat a site that has one as compromised: remove the plugin, change the admin passwords and secret keys, and run a full malware scan.
Tom Morton
Tom runs Six Foot 3, his web consulting practice in Miami, Florida. He has been building for the web since 2008, including two years consulting for the company behind WordPress.com.
More from TomGet the WordPress Intelligence Briefing
One email a week: the week's WordPress links and a take like this one.
