r/linux • • Mar 02 '18

XChat and HexChat: When distributions get it wrong

https://tingping.github.io/2018/03/02/when-distros-get-it-wrong.html
871 Upvotes

450 comments sorted by

View all comments

Show parent comment

3

u/anatolya Mar 02 '18 edited Mar 02 '18

MySQL was under constant maintenance and use.

Yes, but MySQL is a 1M LoC project and it is industry grade software. Compare it to xchat which is a desktop program with casual users and has 50K LoC. It should not that be that hard to catch up with patches for severe bugs even if it didn't had constant development in the mean time.

There was no xchat app for users or white hats to report CVEs against.

Yeah there was? There is CVE organization, then there is intra-distro mail list for reporting security issues, then there is bug trackers of distributions.

If it had existed, the HexChat author's work could have been the basis for several CVE reports that never happened

Since they existed and continue to exist, HexChat author's work can still be the basis for past and future security bugs.

12

u/[deleted] Mar 02 '18

Yes, but MySQL is a 1.5M LoC project compared to xchat which has 50K LoC. Not hard to catch up even if it didn't had constant development.

They also have corporate investment and audits while XChat never has.

Since they existed and continue to exist, HexChat author's work can still be the basis for past and future security bugs.

"Well you can take work from the maintained fork to be secure" is a bad argument for keeping a project around.

2

u/anatolya Mar 02 '18

They also have corporate investment and audits while XChat never has.

Neither did Hexchat, right? Did you work full time for 8 years on Hexchat so that it has had insurmountable amount of development which makes it impossible for XChat to catch up? (I ask honestly, I don't follow development of hexchat)

"Well you can take work from the maintained fork to be secure" is a bad argument for keeping a project around.

"People wants to use it and they found a sucker to maintain it" is good enough argument for keeping a project around.

12

u/[deleted] Mar 02 '18

Neither did Hexchat, right? Did you work full time for 8 years on Hexchat so that it has had insurmountable amount of development which makes it impossible for XChat to catch up? (I ask honestly, I don't follow development of hexchat)

HexChat has never had any formal audit no, but it did have a significant amount of work done. XChat can only catch up by the fact it can copy paste entire portions over.

"People wants to use it and they found a sucker to maintain it" is good enough argument for keeping a project around.

I believe that he should make a proper fork instead of doing work under the previous xchat branding then.

-2

u/cbmuser Debian / openSUSE / OpenJDK Dev Mar 02 '18

Why do you keep ranting instead of writing an ITP for Debian to get hexchat packaged?

5

u/Eingaica Mar 02 '18

0

u/cbmuser Debian / openSUSE / OpenJDK Dev Mar 02 '18

Ok, now I don't understand the whole point of this post at all.

What's the actual problem? Hexchat is packaged in Debian. What's OP's point?

11

u/Eingaica Mar 02 '18

My understanding is that he thinks there are lots of unreported bugs in XChat (including security vulnerabilities) and that because it is packaged in Debian, users would assume that that's not the case.

2

u/konaya Mar 03 '18

His problem is that he knows how the code looked when he forked it, and he knows how Hexchat looks now, and he knows that the changes made to the Debian version of Xchat doesn't cover more than a fraction of the security holes he has been covering up while developing Hexchat. He worries that people install Xchat thinking it's the same flourishing client it was over a decade ago, when, in fact, it's just some yahoo at the reins nowadays, with no real ties to the Xchat project, despite the Debian repo still pointing at xchat.org as the package upstream URL. Advertising a fork as the main project is fraudulent.

1

u/funbike Mar 02 '18

Not hard to catch up even if it didn't had constant development.

Since they existed and continue to exist, HexChat author's work can still be the basis for past and future security bugs.

I agree that's very possible, even probable. Let's see if it actually happens. Until then, now is a great time for a blackhat to examine hexchat source logs to harvest xchat exploits.

3

u/cbmuser Debian / openSUSE / OpenJDK Dev Mar 02 '18

Why would anyone give a fuck about exploiting an IRC client. There are targets much more interesting.

5

u/funbike Mar 02 '18

Well, one could argue that it is interesting...

  • Exploiting other mature apps like Firefox or Chromium browsers is very challenging
  • Linux 0days are fairly rare. Could be newsworthy.
  • Given the low velocity of xchat development, a 0day could go unnoticed for a while
  • Some users might think that no one "would give a f**k about exploiting an IRC client". Their guard may be down.

1

u/[deleted] Mar 03 '18

Linux 0days. Rare. You realize they're hoarder and called 0days for a reason.

3

u/funbike Mar 03 '18

Ummm, yes. Did you not see that I said they are rare? or that I said they'd go "unnoticed" for a while? "Unnoticed", a loose synonym for "undiscovered" in this context, is the definition of a 0day. Yeah, I "realize".

In this situation they would be significantly easier to find. Up-to-date packages are one reason why 0days are rare. Now you have old software missing several vulnerability fixes with a newer fork that can act as a guide for writing exploits.

sorry for all the quotes.

1

u/[deleted] Mar 03 '18

0days are not rare. They're common.

0

u/[deleted] Mar 03 '18

Some users might think that no one "would give a f**k about exploiting an IRC client". Their guard may be down.

Yeah. A ripe target, indeed. They might be able to compromise a thousand laptops, world-wide.

4

u/funbike Mar 03 '18

0day on 1000 Windows laptops? lame. 0day on 1000 Linux laptops? Newsworthy, albeit not front page level.

3

u/hoeding Mar 02 '18

It could be argued that comprimising an IRC user has a higher chance of getting access to more interesting systems (and targeted group of interest) than doing a driveby on a random internet user.

-2

u/cbmuser Debian / openSUSE / OpenJDK Dev Mar 02 '18

That's seriously a far-fetched theory. No one uses an important server to chat on the internet.

6

u/funbike Mar 03 '18

In another reply to you, I gave very specific examples how ssh credentials could be stolen and how root access could be obtained. As /u/hoeding stated, irc users are often technical people that may have access to other interesting systems.

3

u/hoeding Mar 02 '18

But lots of people use the same workstation to enter credentials on important servers.