Backdoor Found In UnrealIRCd Source Archive
l_bratch writes "A malicious backdoor was added to the UnrealIRCd source archive some time around November 2009. It was not noticed for several months, so many IRC servers are likely to be compromised. A Metasploit exploit already exists."
This is the kind of behavior that I like to see when someone screws up. Don't be secretive. Don't try to deny it happened. Fess up and make sure people know. *applauds*
Restore the madness of youth's lechery
Always check the hash signatures of any application you use, or at least any application you wish to give internet access to!
The fact that this can get into the program is a weakness of the open source model. The fact that it can be found so quickly is a strength of the open source model.
I hate printers.
From TFA "The Windows (SSL and non-ssl) versions are NOT affected."
Cool, you dont get to see this too often when windows version is safer than a linux one!
Slightly misleading summary. Only some versions on the mirrors were affected.
From the UnreadIRCd forums:
The Windows (SSL and non-ssl) versions are NOT affected.
CVS is also not affected.
3.2.8 and any earlier versions are not affected.
Any Unreal3.2.8.1.tar.gz downloaded BEFORE November 10 2009 should be safe, but you should really double-check.
FTA, "Obviously, you only need to do this if you checked you are indeed running the backdoored version, as mentioned above."
A skilled attacker will have replaced md5sum so that it returns the hash that corresponds to the good version, and in general installed a rootkit. The remediation advice they provide is broken.
If you have installed the affected software, you should probably assume you are owned, regardless of what any local tests tell you.
AVG reports a front page link as the highest risk it reports :P
First, as others have said, the Unreal guys handled this intelligently and properly, so bravo for that.
Secondly, no offense to them, but the Unreal guys wouldn't have had this issue if they regularly verified mirrors. The Unreal guys have been less active in the past few years though, and their software is primarily used by many smaller networks, often with less experience as the IRCd is a bit slow and the codebase is long in the teeth (they're looking to replace this). Something like this was really bound to happen for their team. That said, still good work.
Thirdly, this is why IRC is never ran on its official low numbered port, but on 6667 - there is NO REASON to run IRCd as root - I don't care how safe you think the code is - it's too huge of a target.
So hopefully, anyone sane shouldn't have had more than a sandbox compromised, the patch the Unreal guys released will fix this, and we can all get on with stuff.
Just a few thoughts, oh, and IAAI and IAAIP (I am an IRCop and I am an IRCd Programmer).
Yet another reason to digitally sign your packages. That way, even if your server is hacked, people will know it didn't come from the authors of the software.
See gnupg.org
Comment removed based on user account deletion
That's what I like about open source. Eventually things get found out.
Keep Doing Good.
Cool, you dont get to see this too often when windows version is safer than a linux one!
Hehe..
It also depends on the distributions. Gentoo Linux, for example, was not affected because the package maintainers at Gentoo digitally sign the source tarballs. In this case, the digest created by the Gentoo developer corresponds to the uninfected version. So, any Gentoo user trying to install UnrealIRCd from a infected mirror, would have a digest mismatch and the package manager would just refuse to install.
See https://bugs.gentoo.org/show_bug.cgi?id=323691
Of course it things could still go wrong if the UnrealIRCd maintainer at Gentoo digitally signed the infected tarball. But developers at Gentoo have a lot of experience, so I suppose most everyone checks the hash of tarballs after download. At least I do..
You're wrong, read comment #8. The ebuild manifest was created using the infected version. Package maintainers are suppose to verify the source tarballs before making an ebuild which creates RIPEMD-160, SHA-1 and SHA-256 checksums. Gentoo wasn't any safer in this instance due to maintainer failure.
There's really no technical excuse for not catching a deviation between a release point in a VCS system and the associated tarball, assuming the VCS hasn't also been compromised.
Given this statement, the sensible eyeballs are validating the source as it exists in the VCS, and the sensible admins are checking the correspondence of the tarballs downloaded against the associated VCS checkout checksum. I'm not saying this is the procedure most sites us, just that there's no conceptual obstacle to making this happen. The locus of trust is the VCS system, not the derivative tarballs.
It's the stupidest thing I've heard in a long time to think that open source has such a surfeit of competent eyeballs that they can afford to scatter their resources and catch deviations everywhere, including purportedly identical copies.
That's putting a value of zero on a competent eyeball. Competent eyeballs are contributing to the project, and noticing defects on an incidental basis. This incidental attention catches a lot where activity is heavy.
Vandalism on obscure Wikipedia pages often survives for months, if more subtle than replacing the entire page with
$favorite_underutilized_part_of_my_anatomy!
The concept of scattering this kind of precious scrutiny over derivative works because software installers are too damn lazy to check the shasum boggles my mind.
I end up installing quite a lot of software in the middle of trying to complete a complex task under deadline. Many times I've closed my eyes and typed "sudo make install". When I'm less under the gun I'm more deliberate in my approach. Apparently my faith in distributed paranoia is largely unfounded.
Or maybe the people setting up IRC servers have some dim thought in the back of their minds "maybe I'll meet a chick and get laid someday". There's nothing like the mating reflex to dampen the precautionary spirit.
Proposed warning for the download page:
The bad news is that this software won't help you get laid. The good news is that if you neglect to check the shasum, you might catch a vicarious STD anyway.
... comes greater responsibility and watching.
I hope they learnt their lesson. And other open source code maintainers, before it happens them.
This indeed happened to only the mirrors, but was pulled off by exploting the fact that the source code was open.
It's very important to keep these things under check because it's pretty much the #1 vulneraibility to this development model.
Beware: In C++, your friends can see your privates!
The advisory seems to misleading to some folks, so I'll make things more clear:
The backdoor was only present in the 3.2.8.1 tarball during November and yesterday. It affects *all* platforms, but not the installers, because the installers where made using a clean tarball before the intrusion. The attackers did not touch those.
Here come the people screaming about how this proves Linux and open source aren't any more secure bla bla bla. Linux is not invulnerable. No OS is or ever will be. However, so long as Linux infections are so rare that each one that appears makes headlines, I will feel much more secure using it as opposed to Windows. This is the second Linux infection I have heard of in the last year or two. Compare that to the countless hoards of Windows malware we see every day. Is is only because Windows systems are far more common? Probably. Do I care? No. Why should I? Desktop Linux will likely never see the same market share that windows has, and that is just fine with me. Any kind of mono-culture is asking for trouble no matter what OS it consists of.
I urge EVERYONE that had a possibly exploitable version of UnrealIRCd running to check out the following comment:
http://www.irc-junkie.org/2010-06-12/some-unrealircd-3-2-8-1-downloads-trojaned/comment-page-1/#comment-3290
It seems the exploitation of the vulnerability has begun...
question is, what CLIENTS were owned? ...
i think only irssi was safe from the irc-demon