PHP PEAR official site hacked, attackers replaced legitimate version of the package manager with a tainted version in the past 6 months.
Bad news for users that have downloaded the PHP PEAR package manager from the official website in the past 6 months because hackers have replaced it with a tainted version.
The PHP Extension and Application Repository (PEAR) is a framework and distribution system that allows anyone to search and download free packages written in PHP programming language.
Last week, the maintainers at PEAR took down the official website because hackers have replaced the legitimate PHP PEAR package manager (go-pear.phar) with a malicious version in the core PEAR file system. Maintainers pointed out that the GitHub copy of go-pear.phar is not compromised.
“A security breach has been found on the http://pear.php.net webserver, with a tainted go-pear.phar discovered. The PEAR website itself has been disabled until a known clean site can be rebuilt. A more detailed announcement will be on the PEAR Blog once it’s back online.” reads a security alert published by the admins last week.
“If you have downloaded this go-pear.phar in the past six months, you should get a new copy of the same release version from GitHub (pear/pearweb_phars) and compare file hashes. If different, you may have the infected file.”
Hackers compromised the website at least six months ago, the investigation is still ongoing. PEAR maintainers are working to determine how hackers breached the server and how many users have been impacted.
The PEAR download manager (go-pear.phar) is pre-installed for Unix/Linux/BSD systems, meanwhile Windows and Mac OS X users need to manually install it.
The hack could have a significant impact on a large number of websites because many web hosting providers allow running PEAR.
“This is a fresh release to assist in clearing up the issue with tainted file go-pear.phar that was discovered on the pear.php.net server. There were no code changes between v1.10.9 and v1.10.10.” reads the release note.
“Beginning with v1.10.10, the GitHub repository will now contain GPG signature files for each phar file. This release’s files are signed by Chuck Burgess (C245F175).”
Pierluigi Paganini is member of the ENISA (European Union Agency for Network and Information Security) Threat Landscape Stakeholder Group and Cyber G7 Group, he is also a Security Evangelist, Security Analyst and Freelance Writer.
Editor-in-Chief at "Cyber Defense Magazine", Pierluigi is a cyber security expert with over 20 years experience in the field, he is Certified Ethical Hacker at EC Council in London. The passion for writing and a strong belief that security is founded on sharing and awareness led Pierluigi to find the security blog "Security Affairs" recently named a Top National Security Resource for US.
Pierluigi is a member of the "The Hacker News" team and he is a writer for some major publications in the field such as Cyber War Zone, ICTTF, Infosec Island, Infosec Institute, The Hacker News Magazine and for many other Security magazines.
Author of the Books "The Deep Dark Web" and “Digital Virtual Currency and Bitcoin”.