30 March 2021

PHP’s Git server compromised to plant backdoors in PHP source code


PHP’s Git server compromised to plant backdoors in PHP source code

An unknown malicious actor has compromised the official PHP Git repository in attempt to add backdoors to the code base of the PHP project.

According to PHP programming language developer and maintainer Nikita Popov, the incident took place last Saturday, on March 28. He said that two malicious commits were pushed to the php-src repository in both his name and that of PHP creator Rasmus Lerdorf.

“We don't yet know how exactly this happened, but everything points towards a compromise of the git.php.net server (rather than a compromise of an individual git account),” Popov explained, adding that the maintainers decided to discontinue the git.php.net server because “maintaining our own git infrastructure is an unnecessary security risk.”

“This means that changes should be pushed directly to GitHub rather than to git.php.net,” Popov said.

The malicious commits were disguised as benign typographical errors that needed to be corrected, however, taking a closer look at the line 370 where zend_eval_string function is called contributors noticed that the code actually adds a backdoor that allows malicious code execution on a website running the vulnerable PHP version. The malicious code is executed from within the useragent HTTP header, if the string starts with 'zerodium', the name of a well-known exploit seller.

Commenting on the situation, Zerodium's chief executive Chaouki Bekrar labeled the culprit as a “troll” and said that his company has “nothing to do with this.”

“Likely, the researcher(s) who found this bug/exploit tried to sell it to many entities but none wanted to buy this crap, so they burned it for fun,” Bekrar tweeted.

Back to the list

Latest Posts

Cyber Security Week in Review: May 10, 2024

Cyber Security Week in Review: May 10, 2024

In brief: Google fixes yet another Chrome 0Day, Dell suffers a data breach, the LockBit leader identified, and more.
10 May 2024
Massive BogusBazaar fraud ring steals credit cards from thousands of victims

Massive BogusBazaar fraud ring steals credit cards from thousands of victims

As of April 2024, approximately 22,500 domains were active.
9 May 2024
Poland’s government institutions targeted in Russian cyberespionage campaign

Poland’s government institutions targeted in Russian cyberespionage campaign

The incident marks the latest in a string of Russian cyberattacks aimed at NATO-allied nations supporting Ukraine.
9 May 2024