back to article Linux IRC server leaves backdoor open

A warning today that Linux users are not as immune to security threats as many of them like to believe - anyone who has downloaded the Linux version of IRC server Unreal since November 2009 should check for a trojan. An Unreal admin said the Unreal3.2.8.1.tar.gz file on its mirrors had been replaced back in 2009 with a version …

COMMENTS

This topic is closed for new posts.
  1. Doug Glass
    Go

    Can't Stop Laughing

    HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA..........n-1

    1. Jamie Jones Silver badge
      FAIL

      why are you laughing?

      I'm not a linux fanboi, but this isn't an operating system security flaw - no more than it would be a windows flaw if someone downloaded a similiarly trojuned windows executable.

      However, the danger to the OS is much less than it would be with windows, so you fail

  2. Anonymous Coward
    Anonymous Coward

    Its not Unreasl the game is it?

    Because the links you post have lead to Unread IRC

    A chat program not the massive online shooter. Or am i missing something?

    Even so its still a problem when they openly admit to not checking the FTP servers regularly.

  3. James O'Shea Silver badge
    Linux

    Fun times

    Hmm. Seems as though Trojans can be used against anyone. Interesting.

  4. fifi

    some risks...

    Yes, the backdoor enables "a person to execute command with the privileges of the user running the ircd", but that's the rub. It only has the same power as that user.

    It does show that linux isn't immune, but it also shows that when it IS affected, the damage is limited to the compromised component, it's not a systemwide takeover.

    Also, it should be emphasised that it was only the source code that was affected. None of the binary packages have the backdoor.

    1. Anonymous Coward
      FAIL

      Things fifi has not heard of yet...

      "It only has the same power as that user."

      *cough* PRIVILEGE ESCALATION *cough*!!!

      1. Anonymous Coward
        Anonymous Coward

        Re: PRIVILEGE ESCALATION

        *cough* chroot *cough*

    2. Anonymous Coward
      Anonymous Coward

      coz

      Coz there are no privilage escalation attacks on linux once you've got a shell...

    3. Steven Knox
      Boffin

      This is true:

      "Yes, the backdoor enables "a person to execute command with the privileges of the user running the ircd", but that's the rub. It only has the same power as that user."

      Or, it would be, as long as exactly zero privilege escalation exploits exist within the commands available to the process user.

      This is not necessarily true:

      "It does show that linux isn't immune, but it also shows that when it IS affected, the damage is limited to the compromised component, it's not a systemwide takeover."

      due to the potential for escalation as mentioned above.

      1. fifi

        if and if and if

        So 'if' you run Unreal with the backdoor, and 'if' you also have an exploit within reach of the user....

        every "if" case required lowers the chance of a systemwide takeover.

      2. ElReg!comments!Pierre

        escalation, wut?

        Well, given that this is an IRC server, I wouldn'nt expect it to need much more than a small subset of the busybox anyway; good luck finding a privilege escalation exploit in that (might exist though; probably just not too easy to find).

        Also, should you get root privilege, what ya gonna do with that? Surely everyone removes make and the like as well as any other uneeded admin tool from their chroots or jails before letting them go live on the big bad 'tarwubz, no? Of course escaping chroot is not unheard of. Jail, not so much, but certainly still possible. I would not describe the process as "trivial" though, when less is your only tool.

      3. Joe Montana
        Stop

        Potential...

        Potential for escalation is considerably less serious than immediate compromise to an elevated user.

        Most people running IRCD like this would be running on shared shell servers, where anyone can purchase an account... If unprivileged access is just $5 away then you need to ensure that privilege escalation isn't possible anyway.

    4. Robert 36
      Alert

      One Important Issue, Though

      Even though the IRC server and trojan would run at reduced privilege, it does get the attacker's foot in the door and allows them to then probe and exploit other possible weaknesses to escalate to root. It gets them past any firewalls and on your system where there are potentially many more vulnerabilities.

    5. Robert Brockway
      Linux

      Immunity

      No OS is 'immune' to security threats because formal correctness cannot yet be established for anything as complicated as an entire OS. A small experimental kernel was formally proven correct recently however.

      No mainstream OS even has a very high level of security.

      I'm not pointing this as any particular person here but gosh our industry has a lot of clueless people to speak about topics they know nothing about.

      The various reports on this problem are generally wrong on several levels. I won't go into them as I've already done that a few times and so have others.

      What I will say is that methods to avoid source compromises like this are well understood and have been in use for as long as 20 years. You calculate hashes of the packages/archives (eg, using md5), keep the hashes in a seperate security domain and check them when you download. Package management systems usually automate the checking these days.

      This problem occured because the people producing the package/archive didn't follow well known security procedures.

  5. The Ref
    Black Helicopters

    It had to happen some time

    I'm glad this has happened, not because I wish Linux harm, but to highlight that all systems are vulnerable.

    I am a big fan of Linux in some areas - I believe you use the OS / tools that meet your needs but have been concerned at the attitude "I use Linux so I am safe". No systems are safe - Linux may be better than Windows in many areas but *everyone* needs to be always aware of security issues.

    Social engineering is the quickest way to control a system - injecting a trojan and getting users to download and install it will always be a risk.

    1. system

      RE: It had to happen some time

      This was not aimed at home users though, who are the ones I mostly hear repeating the mantra about *nix (and macs) being immune to all nasties. Home users don't tend to run IRC networks.

      I'd bet that the majority of installs of Unreal were on servers (tastier targets for a spam/ddos network), where a higher percentage of administrators should already know that trojans can get anywhere. So this probably does nothing to raise awareness among the ignorant.

  6. Anonymous Coward
    Grenade

    Linux is much more secure

    Linux is still quite a few orders of magnitude safer than Windows, if you take into account the number of threats for Windows and the number of threats for Linux.

    @Doug glass: How much do you pay for your antivirus? :)

  7. Cameron Colley

    Good to have a heads-up.

    Though what this is really about is trusting your software sources, not trusting your OS.

    If you install a program on your machine then, of course, it will have at least as many permissions are you (or as you explicitly allow) -- so given that this is a IRC server it's hardly any kind of vulnerability.

  8. fskmh
    FAIL

    Fail article

    Wow, someone was so eager to upset those linux fanbois that they didn't get round to checking what the software is for in the first place. Luckily some similarly ignorant commentards came to keep him company.

  9. Jamie Jones Silver badge
    Thumb Up

    Yay FreeBSD ports

    The Freebsd ports infrastructure contains md5 and sha256 hashes for all ports..

    If a FreeBSD user tried to install the trojuned version, it would have been picked up immediately.

  10. pan2008
    Thumb Up

    hehe

    This is what happens when you give everyone access to your code. Someone can implant a virus, trojan or any sort of nastyness and unless the code is checked properly hell can break lose. Code is not always understood by everyone, any coder knows this. No OS is immune.

  11. Anonymous Coward
    FAIL

    "Linux IRC server"

    Last I checked Unreal IRCd ran on windows as well. It's about as much a "linux server" as Open Office is a "linux" application. If a trojan was found on windows versions of oo.org would people say that's a windows problem, or an openoffice problem?

    Obviously that'd be an openoffice problem. On windows, though, it would present much more of a threat (yes, even on windows 7, which is riddled with security holes still, though they've gone a long way towards mitigating the problem) than it would on linux. Not even a well configured linux. You have to pretty badly screw things up to the point of running everything as root before something like this becomes a windows-scale threat to your system.

    Big fat article FAIL.

    1. Jamie Jones Silver badge

      close but no cigar

      whilst I agree generally, you seem to have missed the fact that the trojaned source was on a LINUX download site

  12. jake Silver badge

    What else is new?

    When numpties run sever software at home, they are as vulnerable as their sysadmin's ability to lockdown their OS of choice. Highly recommended reading:

    http://cm.bell-labs.com/who/ken/trust.html

  13. ElReg!comments!Pierre
    Coat

    Mmmm lemme see...

    That IS an embarrassing mistake from the Unreal team, indeed. User unreal in group unreal who has access only to the /home/unreal folder (containing only the folder with the unreal settings, and maybe some config file called .unrealrc) is going to be sooo screwed. Or not. No problem on the Linux system running the server then.

    Of course the backdoor could be used to push malware towards dodgy clients installed with admin privilege on windows boxes... which would happen to connect to the compromized server... Muhahahahaha back at'ya, Doug glass!

  14. Chika
    Flame

    The Right Honourable Sir Lord Flamy McFlame (is that a good title?)

    "A warning today that Linux users are not as immune to security threats as many of them like to believe..."

    First, nobody who has any sense believes that any OS is totally safe.

    Second, why is it that the above sentence is wheeled out every time Linux (or an application on it) is called to task? Answer: see my first statement.

    Third: Do all Linux users have any sense? Answer: Is it any likelier than users on any other OS?

    Sorry, but these things happen.

  15. Anonymous Coward
    Anonymous Coward

    Not just Linux

    Self-compiled Windows versions are also vulnerable.

  16. copsewood
    Boffin

    Did this trojan get downstream ?

    It would be worse had this trojan got into the quality assured and cryptographically signed off RPM and APT software installation packages for the Linux distros out there that most Linux users actually use. If it did, that would be more serious than a single developer of a single program which isn't widely used getting hacked. Linux users/admins who install from .tgz files distributed by upstream projects should know that they don't get the same verified and integrated supply chain quality assurance if they obtain software from developers directly. The fact that it is more difficult to install from developer .tgz files is good, because those doing this should know more about what they are doing. Nothing new here about trojans, but no-one in the Microsoft world gets the extra security provided by the distribution packagers if they use 3rd party applications obtained directly from the developer

  17. Antti Roppola
    Grenade

    The tools are there

    This is an issue for all OSs. Most (all?) package managers already support signing, but if you grab a tarball or zip file and run the contents that isn't going to help you on any OS. Driving a safely designed car doesn't mean you are immune to acts of stupidity.

    If you admin the system it is assumed you know what you are doing. But greater use of UAC/SElinux to manage roles and more obvious enforcement of package signing would make it a bit harder for the clueless to injure themselves by installing software from random 3rd parties.

  18. Dr Christian
    Unhappy

    RE: Yay FreeBSD ports #

    It's a shame no one uses FreeBSD

    1. Anonymous Coward
      Anonymous Coward

      it is a shame that more people...

      don't use it. There is also a very user friendly desktop distro based on FreeBSD call PC-BSD that is a real pleasure to use. I haven't read Dru Levine's book on PC-BSD, but she has a good reputation as an author.

  19. Joe Montana
    WTF?

    Not specifically a Linux issue...

    The file backdoored was the source code, not a linux binary thus this code could potentially be compiled on many different systems - not just linux..

    Actually, most competent Linux users are likely to install programs like this through their package manager rather than downloading and manually compiling the source code.

    It's also unlikely that a competent unix admin would compile or run something like ircd as root, thus limiting the scope of this backdoor.

  20. Adam Williamson 1
    FAIL

    Not 'the Linux version'

    Since you've already made one correction, Reg, perhaps you could make another? As several commenters have pointed out, the exploit is not in 'the Linux version of IRC server Unreal', it's in the source code. Which is, as even current Reg hacks should surely know, is not platform specific. The source of the confusion is possibly that the project appears to follow the fairly common practice of providing pre-rolled binaries for Windows but not Linux. That doesn't make the source tarball 'the Linux version', though. It's still just the source tarball. You could compile it on many platforms.

    So, the story is...two-bit IRC server project gets its website compromised. Wewp, stop the presses. That must have affected, oooh, at least 20 machines. It's not like Unreal is even the most popular IRC server in the world. I mean, zoiks.

This topic is closed for new posts.

Other stories you might like