Hacker Balada Injector compromises 6,700 WordPress sites

Sucuri specialists discovered new Balada Injector campaign starting mid-December 2023. As a result, more than 6,700 WordPress sites using a vulnerable version of the Popup Builder plugin were infected with malware.

Let us recall that Balada Injector was initially discovered at the end of last year by specialists from Sucuri and Doctor Web. At that time, experts warned that Linux backdoors Balada Injector began to spread back in 2017 and managed to infect more than a million sites running WordPress, using over 30 different vulnerabilities in a number of plugins and themes.

Typically, Balada Injector is used to redirect visitors of hacked sites to fake technical support pages, fake lottery winnings, push notification scams, and so on.

The latest Balada Injector campaign launched on December 13, 2023, just two days after WPScan analysts reported an XSS vulnerability CVE-2023-6000 in the Popup Builder plugin (versions 4.2.3 and older), which is used on 200,000 sites.

The authors of Balada Injector quickly implemented an exploit for this bug into their malware, which uses the sgpbWillOpen event in the Popup Builder and executes malicious JavaScript code in the site's database when the popup window is launched.

Researchers note that attackers also use an additional infection method by modifying the wp-blog-header.php file to inject the same JavaScript backdoor into the site.

After this, the attackers check the cookies associated with the administrator, which allows them to load various sets of scripts onto the site to inject the main backdoor disguised as the wp-felody.php plugin.

The felody backdoor itself is capable of executing arbitrary PHP code, downloading and executing files, interacting with attackers, and receiving additional payloads from them.

As mentioned above, more than 6,700 sites have already been infected. According to researchers, the redirects from this malicious campaign are mainly due to fraudulent push notifications.