Caution: malicious code injected into templates table
-
The day before yesterday one of my clients had 4 malicious admin users added to their site, and I finally tracked down the issue to be this plugin. When downloaded from WordPress the plugin acts fine, but somehow a couple of days ago the wp_wfpklist_template_data became populated with templates that all contained links to external javascript located here:
https://whoisloookup.com/js/js.js
You can see at line 218 the GetAdminPath() function, which very specifically looks for the admin urls, including ones containing the print_packinglist slug. This code is custom designed to work with this plugin. Here is a paste of the Javascript in case the live copy disappears:
This hack and the users created are the same ones described here:
Injected script whoisloookup[.]com/js/js.js that creates a rogue support_woouser/support_woousers admin user on #WordPress sites and injects PHP backdoors into theme and plugin files (if a logged in admin loads infected pages) pic.twitter.com/VWgOhQeRT5
— Denis (@unmaskparasites) December 16, 2019
I thought that it was odd this involved the templates, as that’s a feature of the premium plugin and this was the free version. Also, I checked the apache logs and no admins were logged in when this happened. There were 7 templates added in all, all infected, each with a creation timestamp. Cross referencing those with the apache logs it looks like each template was created by a non-logged in person, or someone who was only logged in as a customer, by posting to admin ajax:
[23/Jan/2020:16:23:58 -0600] "POST /wp-admin/admin-ajax.php HTTP/1.1" 200 90 "https://www.necksolutions.com/wp-admin/"
It looks like the insecurity is with the plugin itself, although since I do not have the POST data I cannot see exactly how this was being effected.
In addition to creating the new users, the script also caused a new malicious plugin named unzipfiles/unzipfiles.php to be added to the site, so anyone using this plugin should be on the lookout for that as well.
-Michael
- The topic ‘Caution: malicious code injected into templates table’ is closed to new replies.