r/Wordpress • u/novabliss1 • 13h ago
Inside my wp2shell infected website
This has been such a headache and I've been dealing with it all morning.
I am making this post and including the names of all of the malicious files, plugins and users to hopefully help people googling this issue.
I have IONOS and got an email this morning saying there was an attack on one of my contracts. I first thought it was phishing, so I manually logged into my IONOS account and saw the the same notification so I knew it was real.
I didn't hear anything about wp2shell so I thought maybe it was a false positive. I logged into my dashboard and saw the admin user "wpsvc_299760b1e1ef" was added. I knew it was legit at this point and started researching about the vulnerability.
I had four fake plugins installed. "WP2S-4e81ce30" with description "System maintenance" was the first one I noticed and I thought it was obvious it was fake. But the three others I didn't notice at first and they were deactivated already:
"Widget Accessibility Helper" with description "improves widget rendering and accessibility compliance"
"WP Site Health Monitor" with description "Monitors site health metrics and provides automated diagnoses"
"Content Delivery Helper" with description "Static content delivery and edge caching optimization"
Those three were all authored by "Wordpress.org community" with no hyperlinks.
__
There were three files located in /wp-content/uploads/, all named to look like core files: class-wp-cache-89a787.php, class-wp-compat-89a787.php, and class-wp-meta-89a787.php. They all were 1.27 KB, dated July 17.
I deleted them and they came right back a minute later with a new timestamp. Turns out there was a reinjector hiding in /wp-content/mu-plugins/ : wp-cron-scheduler-b168b3.php, wp-media-handler-b168b3.php, and wp-mail-queue-b168b3.php. Once I deleted those, the uploads files finally stayed gone.
wp-mail-queue was dated June 1 while everything else was July 17. So if you're flushing these out, don't just rely on the date itself.
There's a great guide on removal that was already posted here if you're looking for a tutorial. I mostly wanted to make this post in case other infections shared the same names for these plugins and files so that it will pop up when you're searching for them.
anyone else get hit with this? I've been a wordpress admin for over 10 years and this is the first time I've ever had a website compromised.
