Hackers backdoor PHP source code after breaching internal git server

I think it will be beneficial in the long-term to handle pull requests using GitHub's workflow. Perhaps it will make it easier for people to contribute fixes and features to the PHP community rather than going through some of the more legacy methods.

Regarding the server: things happen, but thankfully it was caught in time. Crisis averted!
 
Upvote
48 (48 / 0)
I can see why they are doing this, but it still worries me that all source code tends to end up on GitHub.

Haven't we learned that platform monoculture is bad?

(I guess not).

Indeed, there are others who share the same opinion:

https://lwn.net/Articles/850992/

There is some discussion there regarding sourcehut as a FOSS drop-in for GitHub.
 
Upvote
18 (22 / -4)

srh

Ars Scholae Palatinae
676
Subscriptor++
One of the (few) times I'm grateful to be coding in perl 5.8.5 on a local disk! Fortune 500 paranoia and inertia FTW.

I did work for a startup until recently which, as part of its CI workflow, pulled libraries from all over including some sketchy .cz domain. This notion of pulling critical components from outside sources into your local network just seems so foreign to me. But that seems to be the way a lot of software development is going.

It's terrifying thinking of how much of Teh Internets are built on that foundation.
 
Upvote
39 (51 / -12)
I can see why they are doing this, but it still worries me that all source code tends to end up on GitHub.

Haven't we learned that platform monoculture is bad?

(I guess not).
Git being Git, why should it matter if GitHub is a common place to host repositories? Does it naturally impose any kind of culture beyond Git itself? GitHub-specific features seem to be convenient wrappers for functionality that exists or could be replicated elsewhere.
 
Upvote
58 (63 / -5)

Stern

Ars Praefectus
4,264
Subscriptor++
Indeed, there are others who share the same opinion:

https://lwn.net/Articles/850992/

There is some discussion there regarding sourcehut as a FOSS drop-in for GitHub.
There's been tons of small repo hosting services over the years. It's always been an enormous pain to find and fix all the broken links when they inevitably folded.
 
Upvote
50 (50 / 0)

CraigJ ✅

Ars Legatus Legionis
27,010
Subscriptor
The fact that these commits were scrutinized so quickly, and that corrective action was taken immediately, and that within a day or so policies and procedures were updated and additional layers of security were implemented is praise worthy.

There is no perfect 100% secure solution, but the fact that the maintainers are apparently eyeballing these commits in near real time is encouraging.
 
Upvote
129 (130 / -1)
Indeed, there are others who share the same opinion:

https://lwn.net/Articles/850992/

There is some discussion there regarding sourcehut as a FOSS drop-in for GitHub.
There's been tons of small repo hosting services over the years. It's always been an enormous pain to find and fix all the broken links when they inevitably folded.

It is unfortunate that people lose interest in their projects, or that people lose interest in these FOSS projects after dealing with rough edges that big budgets can overcome. This is a complex problem, and in this case, I doubt that GitHub will be dethroned in the near future unless significant missteps occur.
 
Upvote
18 (18 / 0)

mdrejhon

Ars Praefectus
3,214
Subscriptor
Indeed, there are others who share the same opinion:

https://lwn.net/Articles/850992/

There is some discussion there regarding sourcehut as a FOSS drop-in for GitHub.
There's been tons of small repo hosting services over the years. It's always been an enormous pain to find and fix all the broken links when they inevitably folded.

It is unfortunate that people lose interest in their projects, or that people lose interest in these FOSS projects after dealing with rough edges that big budgets can overcome. This is a complex problem, and in this case, I doubt that GitHub will be dethroned in the near future unless significant missteps occur.
That’s why I love the fork-repo feature (like the github one). New maintainers have stepped up to abandoned projects this way, license-permitting.

Sometimes those become the defacto main repo once their reputation is well maintained.
 
Upvote
20 (20 / 0)

roman

Ars Tribunus Militum
2,834
Subscriptor
Just another example of why you shouldn't ever try to roll your own security related infrastructure unless you really really know what you are doing.

I don't know if that's the reason. Sometimes "rolling your own" is done out of necessity since there are hardly any alternatives at the time. GitHub is a lot newer then other source code repositories... it's certainly isn't as old as PHP itself (which started in 1994)
 
Upvote
21 (23 / -2)

CraigJ ✅

Ars Legatus Legionis
27,010
Subscriptor
PHP 80 % of websites? Humanity is doomed.

Because 80% of websites running Python/ASP.NET/Node/whatever is sooooo much better?

The biggest problem with PHP and all the other languages IMO is that people grab sample code from some rando site and it works and they think they are developers and they leave this shit running on live servers hooked up to the net.

My number one task for the last month or so has been trying to explain the difference between code that functions, and production ready code to senior management...
 
Upvote
36 (48 / -12)
PHP 80 % of websites? Humanity is doomed.

Because 80% of websites running Python/ASP.NET/Node/whatever is sooooo much better?

The biggest problem with PHP and all the other languages IMO is that people grab sample code from some rando site and it works and they think they are developers and they leave this shit running on live servers hooked up to the net.

My number one task for the last month or so has been trying to explain the difference between code that functions, and production ready code to senior management...
It does tend to be safer for non-developers to use someone else’s code than their own. The difficulty is in evaluating what is safe to run and how to keep it that way. That can be difficult even for experienced devs.
 
Upvote
15 (16 / -1)

SlowMoe

Seniorius Lurkius
15
PHP 80 % of websites? Humanity is doomed.

Because 80% of websites running Python/ASP.NET/Node/whatever is sooooo much better?
Python has "errors should not pass silently" as a core value. Yes, Python would be sooooo much better, it really would. ASP.NET would also be better, sure it's a pain to develop with, but I think it's pretty OK when it comes to security.

You have a point about Node.js, though.
 
Upvote
7 (20 / -13)
Post content hidden for low score. Show…

libelle

Ars Centurion
232
Subscriptor
This hack almost seems like it was designed to be detected. There was apparently zero effort put into obfuscation. I could get all conspiracy-theory, but, perhaps it was just an unsophisticated supply-chain attack.

It's a good thing that it was detected quickly, and will doubtless spur greater overview of future commits. Maybe it'd be good to review previous commits as well.
 
Upvote
21 (21 / 0)

dio82

Ars Legatus Legionis
10,407
Subscriptor
PHP 80 % of websites? Humanity is doomed.

Because 80% of websites running Python/ASP.NET/Node/whatever is sooooo much better?

The biggest problem with PHP and all the other languages IMO is that people grab sample code from some rando site and it works and they think they are developers and they leave this shit running on live servers hooked up to the net.

My number one task for the last month or so has been trying to explain the difference between code that functions, and production ready code to senior management...

Before PHP 7, PHP was a terrible, unsafe hackster language that seriously had no right to exist. But after the release of PHP 7 and the evolution of clean and solid framework architectures like Laravel or Symfony, PHP has become seriously good for web services.
 
Upvote
23 (27 / -4)

andrewb610

Ars Tribunus Angusticlavius
6,141
Upvote
7 (9 / -2)

libelle

Ars Centurion
232
Subscriptor
PHP 80 % of websites? Humanity is doomed.

That is primarily Wordpress, Joomla and other consumer CMSs.

High volume serious PHP websites use Symfony or Laravel, which is an entirely different beast.

Don't forget Yii!
Gonna go write my next (first) website in assembly. I don't even know if that's physically possible.

I've done websites in C (don't ask).

But in all seriousness, Yii has been a really robust, serious framework for PHP for a decade now, even in the shadowy old days of PHP 4.x.
 
Upvote
14 (14 / 0)
PHP 80 % of websites? Humanity is doomed.

That is primarily Wordpress, Joomla and other consumer CMSs.

High volume serious PHP websites use Symfony or Laravel, which is an entirely different beast.

Don't forget Yii!
Gonna go write my next (first) website in assembly. I don't even know if that's physically possible.

Anything is possible with enough time and effort. It would keep you busy for a while, that's for sure!
 
Upvote
15 (15 / 0)

andrewb610

Ars Tribunus Angusticlavius
6,141
PHP 80 % of websites? Humanity is doomed.

That is primarily Wordpress, Joomla and other consumer CMSs.

High volume serious PHP websites use Symfony or Laravel, which is an entirely different beast.

Don't forget Yii!
Gonna go write my next (first) website in assembly. I don't even know if that's physically possible.

Anything is possible with enough time and effort. It would keep you busy for a while, that's for sure!
I've actually rewrote a couple (though they're completely intranet). Redid straight HTML in PHP and it made my life so much easier.
 
Upvote
3 (5 / -2)

dio82

Ars Legatus Legionis
10,407
Subscriptor
PHP 80 % of websites? Humanity is doomed.

That is primarily Wordpress, Joomla and other consumer CMSs.

High volume serious PHP websites use Symfony or Laravel, which is an entirely different beast.

Don't forget Yii!

Shrug ... Yii is incompatible with the Symfony dependency injection container so it gets the boot from me.

Symfony + API Platform is an absolute killer combination for web services and microservices, my current bread and butter.
 
Upvote
11 (11 / 0)

makimaki

Ars Centurion
342
Subscriptor
PHP 80 % of websites? Humanity is doomed.

That is primarily Wordpress, Joomla and other consumer CMSs.

High volume serious PHP websites use Symfony or Laravel, which is an entirely different beast.

Don't forget Yii!
Gonna go write my next (first) website in assembly. I don't even know if that's physically possible.


Well there's always webassembly, which you can compile to from C or Rust (and other languages)....

Or try to write yourself directly.
 
Upvote
11 (12 / -1)

Mr. Kite

Ars Scholae Palatinae
944
Subscriptor
PHP 80 % of websites? Humanity is doomed.

Because 80% of websites running Python/ASP.NET/Node/whatever is sooooo much better?

The biggest problem with PHP and all the other languages IMO is that people grab sample code from some rando site and it works and they think they are developers and they leave this shit running on live servers hooked up to the net.

My number one task for the last month or so has been trying to explain the difference between code that functions, and production ready code to senior management...

Before PHP 7, PHP was a terrible, unsafe hackster language that seriously had no right to exist. But after the release of PHP 7 and the evolution of clean and solid framework architectures like Laravel or Symfony, PHP has become seriously good for web services.

I guess I'm a little behind the times then. I've been around a while but I haven't had to deal with PHP myself, although I did interview with an all-PHP web gaming company that wanted all their ops scripting to be done in PHP too. I backed away slowly, keeping an eye on their hands.
 
Upvote
-5 (9 / -14)

Jedakiah

Ars Tribunus Militum
1,617
Just another example of why you shouldn't ever try to roll your own security related infrastructure unless you really really know what you are doing.

We still don't even know what the vulnerability is. It'll be interesting to see if the same vulnerability impacts other organizations.

For years now I thought Zerodium was a broker. Didn't realize they are the actual client. It's crazy the amount of power certain companies wield. Anybody remember HBGary?
 
Upvote
8 (8 / 0)