Attention! New WordPress security issue

Recently we’ve found some kind of a security issue on our WordPress production site.
This issue gives the intruder access to theme’s files and change them.

In our case, there were a function eval added to the file. This function runs any string with php code. There is a parameter that is passed to the function and this parameter can be assigned any value by sending POST query directly to the file.

photo_2017-11-07_17-40-46

It’s highly likely that itruders use server’s resources to send spam mail.

There is another result of the injection:

Screenshot above is the main WordPress file.

In the file that was disguised as favicon we’ve found this:

We’ve found the hacker, he signed in the code: fb.com/Dz.Gov.iyade. If you take a look at his facebook page you can see lists of hacked sites and all of them run WordPress.


Here is the list of all sites he hacked: [removed by mod; just to reduce exposure because of the eval()]

The funniest thing that our sites run the latest alpha version of WordPress:
photo_2017-11-07_17-50-44

Here is the list of all changed and injected sites:

He also injects code to the plugin files:

photo_2017-11-07_18-13-30

The most interesting thing that all the injections differ from each other and it is almost impossible to track them by exact signs. We suspect that the malware script randomly injects different files with different types of injections.

We call all ThemeForest authors to check their themes on this topic!

2 Likes

Do you have any information on how he may have modified these files?

Also I don’t recommend running a production site on the development channel of WordPress because this can introduce security vulnerabilities.

1 Like