New rsync Released to Fix Vulnerability
cshields2 writes "Today the rsync developers have released a new version that fixes an exploitable security vulnerability when running rsync as an 'rsync server.' Any server out there running rsync should check this out and upgrade if necessary. (which is every open source mirror server out there, and many mirrors themselves)"
An incident has occurred today near the Slashdot compound, and several people have already been reported missing or dead. Do not panic. We are currently assessing the situation, and believe the deaths were caused by one of Rob "CmdrTaco" Malda's genetic experiments when it escaped from its holding cell. As of yet no photographs have been obtained, but several eyewitnesses have given descriptions that lead to the creation of this sketch. If you see this creature, do not attempt to subdue it yourself, and contact the appropriate authorities immediately. Thank you.
hey retards this is news for nerds we dont care what n'sync is doing they are for homos
pls fix thx
This is what got the cracker in (plus the brk kernel thing) into the Gentoo Rsync server. All fixed now tho!
fp
guess we are about to find out in about 10 mins.
rsync 2.5.6 security advisory
/etc/rsyncd.conf configuration file. If you are using the option "use chroot = no" then remove that line or change it to "use chroot = yes". If you find that you need that option for your rsync service then you should disable your rsync service until you have discussed a workaround with the rsync maintainers on the rsync mailing list. The disabling of the chroot option should not be needed for any normal rsync server.
December 4th 2003
Background
The rsync team has received evidence that a vulnerability in rsync was recently used in combination with a Linux kernel vulnerability to compromise the security of a public rsync server. While the forensic evidence we have is incomplete, we have pieced together the most likely way that this attack was conducted and we are releasing this advisory as a result of our investigations to date.
Our conclusions are that:
rsync version 2.5.6 and earlier contains a heap overflow vulnerability that can be used to remotely run arbitrary code.
While this heap overflow vulnerability could not be used by itself to obtain root access on a rsync server, it could be used in combination with the recently announced brk vulnerability in the Linux kernel to produce a full remote compromise.
The server that was compromised was using a non-default rsyncd.conf option "use chroot = no". The use of this option made the attack on the compromised server considerably easier. A successful attack is almost certainly still possible without this option, but it would be much more difficult.
Please note that this vulnerability only affects the use of rsync as a "rsync server". To see if you are running a rsync server you should use the netstat command to see if you are listening on TCP port 873. If you are not listening on TCP port 873 then you are not running a rsync server.
New rsync release
In response we have released a new version of rsync, version 2.5.7. This is based on the current stable 2.5.6 release with only the changes necessary to prevent this heap overflow vulnerability. There are no new features in this release.
We recommend that anyone running a rsync server take the following steps:
Update to rsync version 2.5.7 immediately.
If you are running a Linux kernel prior to version 2.4.23 then you should upgrade your kernel immediately. Note that some distribution vendors may have patched versions of the 2.4.x series kernel that fix the brk vulnerability in versions before 2.4.23. Check with your vendor security site to ensure that you are not vulnerable to the brk problem.
Review your
The patches and full source for rsync version 2.5.7 are available from http://rsync.samba.org/ and mirror sites. We expect that CmdrTaco will have anal sex with a twelve-year-old boy shortly.
Credits
The rsync team would like to thank the following individuals for their assistance in investigating this vulnerability and producing this response:
Timo Sirainen
Mike Warfield
Paul Russell
Andrea Barisani
The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name CAN-2003-0962 to this issue.
Regards,
The rsync team
First post!!!! oh, anon coward user ... grrr gotta remember to log in next time :)
Nobody runs rsync as a publicly accessible service anymore. It's almost always used in conjunction with ssh on untrusted networks. Doesn't the poster have any idea what he's posting about? This is a non-starter.
Maybe I can't see the forest for the trees, but why would you NOT want to be chrooted?
Do you even lift?
These aren't the 'roids you're looking for.
...or just don't run rsync as a server. There's no need to for most uses anyway - just install the client at both ends and connect with the "-e ssh" flag and you're laughing.
News Flash:
rsync releases a patch and changes its name to r'sync. The change is noted to increase its name recognition in the teenybopper script kiddie market. At this point, no pimply-faced l337 d00dz will dare deface r'sync for fear that they will be further alienated by the female species.
Unfortunately, timberlake and FatOne continue to be backdoored.
Credits
-------
The rsync team would like to thank the following individuals for their
assistance in investigating this vulnerability and producing this
response:
* Timo Sirainen
* Mike Warfield
* Paul Russell
* Andrea Barisani
Regards,
The rsync team
http://lwn.net/Articles/61541/
1. Run installation program
How to install software on Linux
1. Download 'tarball'. If you dont know what that is then stop and go back to your wussy operating system, you pus.
2. Run gunzip on the file.
3. Run tar -xvf on the resulting file.
4. Type make config. Answer the questions. If you dont know how to answer the questions then stop and go back to your wussy operating system, you pus.
5. Type make.
6. Fix compilation errors by resolving dependencies or editing the code to fix the bugs.
7. Log bugs on sourceforge.net.
8. Type make install.
9. Run chmod 666 on the resulting file.
10. Attempt to execute the resulting file, and hope that you have the correct distro and the correct window system that the software author had in mind.
It seems obvious where the real talent in the Linux community lies today.
For the LOVE OF EVERYTHING SACRED, please everyone patch every box on which you are root.
Am I the only one who read that as "NSync released to fix vulnerability"?
I know the one dude is interested in space, but trusted computing?
Webserving is an excruciatingly easy task: the server gets a request like "http://slashdot.org/about.shtml", the server sends that file. That's all. How someone can fail this is beyond me.
Crow is starting to taste pretty good, eh Slashdot?
i do it the slack way.
Of course, to patch this, you should go to your local mirror, which will be down until they patch the rsync vulnerablity...
Doh!
Instructions on how to update Slackware to the latest and greatest rsync are at:a re-security&y=2003&m=slackware-security.399741
http://slackware.com/security/viewer.php?l=slackw
Of course if you're running a server you should theoretically be subscribing to the security mailing list. Right?
I don't know why they even invented an rsync protocol. Things like CVS are very commonly run over SSH, and are rather effecient that way. What's the point of another network protocol, with more bugs to work out, and more security issues to be concerned with? Wonderful... More duplication of effort.
Incidentally. Does anyone know of a program similar to rsync that is under a less restrictive license than the GPL? It would be very useful.
Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
It doesn't look like ersync is open to this particular vulnerability. Although to my knowledge that doesn't run without chroot.
The FSF Savannah server has been hacked. The statement indicates a similar attack vector as the exploit against the Debian systems. However, it had been hacked nearly a month ago and was not detected until December 1st. For those that are not familar with it, Savannah is the FSF version of Sourceforge, hosting both GNU and non-GNU Free Software projects. It has not yet been determined whether any of the projects' source code has been modified. Read the full statement for details. One thing is certain though, with Debian, Gentoo and now the FSF being exploited in the same month, the open source/free software community is clearly under attack.
Using your sig line to advertise for friends is lame.
I tried very hard to find something funny to comment on in this announcement, but could not.
Feel free to mod me wayyy down! I have that syncing feeling.
The Samba team thanks ONE, COUNT IT, ONE person from Gentoo.
The rest ARE NOT RELATED TO GENTOO.
Sheesh...way to be a zealot...
The Slashdot Song
by propstoalldeadhomiez
Rap with me, bitch
Boom, boom, boom!
Nigger WHAAAAA?
Fuck that shit!
Fuck Slashdot!
All you liberals try to censor me
But really you fucking suck Malda's dick
Fucking hypocrites
Back that shit up!
Boom, boom, boom!
Nigger WHAAAAA?
Boom, boom, boom, BOOM!
Nigger!
Boom, boom, boom!
Nigger WHAAAAA?
Fuck the moderators!
Fuck that shit!
Trackin' my username like a fucking dog tag!
Fuck privacy, fuck my rights
Go fucking hypocrisy!
Boom, boom, boom!
Nigger WHAAAAA?
Boom, boom, boom, BOOM!
Nigger!
Boom, boom, boom!
Nigger WHAAAAA?
Fuck that bullshit
Lie and say we want fucking privacy
But track every fucking troll
Banning them 'cause they don't spout liberal bullshit
Well fuck that shit!
Boom, boom, boom!
Nigger WHAAAAA?
Boom, boom, boom, BOOM!
Nigger!
Boom, boom, boom!
Nigger WHAAAAA?
Can't silence this you niggers!
Can't ban the truth!
The place is here!
The time is now!
FUCK SLASHDOT!
BOOM!
NIGGER!
I'd really like to take this opportunity to congratulate both the Gentoo devs and the rsync devs on a job well done. This is one of the many reasons why I continue to use and recommend Open Source to my friends, my boss, and my colleagues. The community simply does a first rate job of identifying and patching problems in their software. Most commercial software vendors wish they had a track record as good as most of the important open source projects out there.
;) It has put the fun back in computing for me.
Keep up the great work, guys! I'm definitely donating to the Gentoo project this Xmas
you might find some of these reports interesting
Los Binds Laborotories
Smegma University of Canada
Goa Tse Governmental Computing Center of Xia, China
Wow, you mean Debian people know how to read source code? I thought they were all spoiled by using binaries all the time.
I hope that this will provide more incentive for Open Source programmers and Linux distributors to properly secure their releases. This entails ensuring that from the time a package leaves a maintainer to the time it reaches a user there should be no possibility of tampering.
Authors/maintainers need to generate PGP keypairs and start signing their archives. MD5 checksum distributed alongside the package does not cut it -- how are we to know the package wasn't tampered with and a fresh checksum generated? No, the only way we can really feel secure is to have authors use PGP on a regular basis to verify their work, and to integrate public key/private key into CVS in order to have submitters automatically sign their changes to the source.
Then things like the Savannah hack and the various mirror compromises will only be a black eye instead of a serious threat to the Open Source methodology.
ONE person from gentoo REPORTED it.
FOUR people NOT FROM GENTOO are the ones who actually FIXED IT.
You are the most pathetic zealot ever.
This calls for Standard Slashdot Response #4:
Yay! This was so fast. Even when we suck we don't suck!
SCO nametag.
Fuck Beta. Fuck Dice
For all you naysayers who always talk trash about Fedora, I run fedora and debian and fedora alerted me this morning about the problem and patched it in seconds. I updated debian too, but I usually dont update on a daily basis, usually like once a week or something, unless I see something in the news. I would have had no clue about this for about a 3 days if i hadn't read slashdot and didn't have Fedora to alert me. I personally like Debian better for other reasons, but I'm just saying dont bang on Fedora, its a damn good product.
Ooooo ... look at the namby pamby Samba zealot. Tridge would be proud of you, sir.
[DSA 404-1] New rsync packages fix unauthorised remote code execution
The Gentoo team found the fix a LOT faster than Debian would have, because they compiled everything from SOURCE, giving MASSIVE speed improvements!
Ya they were involved in figure out how some little script kiddie managed to own their server.
Then they reported it to samba who actually fixed it.
Wow, it took 5 leet gentoo doods to figure out how some little scrip kiddie owned their server.
Wow, you sound like a cybersecurity super important guy!!!1
UR K00L!!!!
0. Smoke crack.
Karma: It's all a bunch of tree-huggin' hippy crap!
While Microsoft's right hand offers millions to hunt down Windows hackers, the left could easily pay Eastern European hackers to open holes in OSS. We would never know.
people running BSD continue on with their lives
not bothering to patch rsync because they don't need to.
You might want to take a look at Easy Automated Snapshot-Style Backups with Linux and Rsync posted by Mike Rubel. I think this is mentioned in the book Linux Server Hacks by O'Reilly (hack #42), although I don't have the book so I'm not sure.
Basically it uses rsync and cp to create a backup, but only changed files are actually copied; unchanged files are simply linked to. This saves a lot of disk space, and allows you to keep many backups on the system at one time, assuming most of your files don't change.
Two months ago I found the problem and gave a patch to fix it. Looks like the bad guys were smarter than I thought and figured out a way to exploit it. Lesson: release fixes for even potential security holes immediately :)
This was a net loss for the cracker, he just lost a remote exploit, because he hacked a well-watched box.
im fucking amazed it was only hacked for about an hour
I'll try to incorporate your words into one of my future posts.
-- Steve
1. Slackware
2. Trustix
3. OpenPKG
4. Debian
5. SuSE
6. EnGarde
7. Connectiva
8. Red Hat
I am stuck with WINDOZE and my boreing install wizards, clicking next, next, next, and finish. ..............
have you even used windows? or are you wearing your rose colored sun glasses?
Unlike CVS, rsync works fine with binary files.
"I assumed blithely that there were no elves out there in the darkness"
(which is every open source mirror server out there, and many mirrors themselves)
No. This does not affect all the open source mirrors. It only affects rsync SERVERS. If you are not running rsync as a server, you are OK. If you are not accepting connections on 873 you are not running an rsync server. (Well, you could be, but you are probably running it over SSH, in which case you are still OK.)
--If you don't test it, it won't work. Guaranteed.
RedHat has also released 2.5.7 RPMs for the fix.
/tmp/rsync-2.5.7-0.9.src.rpm
/usr/src/redhat/SPECS
/usr/src/redhat/RPMS/i386, so you can install it with:
/usr/src/redhat/RPMS/i386/rsync-2.5.7-0.9.i386.rpm
When updating an older server (7.1, I think), the RH RPM failed with a GLIBC dependency. The updates for RH are identical for 7.1 - 9, so you might have a problem here.
My easiest workaround was to rebuild the rpm from source with:
Get the rsync-2.5.7-0.9.src.rpm from RedHat ftp server updates.redhat.com
Install the source rpm with:
rpm -ivh
Build a new complete, clean set of RPMs with:
cd
rpm -bb rsync.spec
The new installable binary for your current lib versions is in
rpm -Fvh
---
For those that don't use rsync, this is easily one of the most useful utilities on the box. I particularily like "modules" mode over ssh. Setup an ssh key and have the key auto-run rynnc --daemon. You get modules and ssh. Really cool.
"This server is administred and run by a third party which is not linked to Gentoo."
Oh so it WASNT Gentoo people who caught this expoit then eh?
Gentoo's server still got owned, Haw Haw.
The developers of Slackware are the slackers.
If you are a sysadmin who uses slackware you definatly aren't a slacker since it's a real bitch to administrate such a shoddy distro...
Rsync was such a bad idea that the cvsup source (suplib and client) has such crazy files as:
;-)
S 2000-rs ync/OLS2000-rsync.html
RsyncUpdater.m3, RsyncBlockArraySort.m3, RsyncBlock.m3 and RsyncFile.m3
<Warning> Compiling cvsup from source involves the download or compiling of ezm3 first <\Warning>
If you want a good read about the algorithim behind rsync go here:
http://olstrans.sourceforge.net/release/OL
Have Apple released a patch for Mac OS X yet?
Apple's product security and security update pages don't mention it.
"Would it kill you to put down the toilet seat?" -- Maya Angelou
Good I never really liked Justin Timberlake anyway.
Here
Remember last summer? With the worms and all?
Anything, ANYTHING, is better than anything from Microsoft. Be it Gentoo, RedHat, Debian, or whatever. Pick one that fits you, you can't lose.
Have a look at rdiff-backup. It uses ssh to login and to run the server on the other side, and runs through the SSH tunnel. Nice from a security perspective. I use it for all of my backup needs. Along with careful use of ssh and private/public key pairs, you can automate it and still keep it fairly secure.
---
Here
rsync security update (SSA:2003-337-01)
here the security advisory of rsync.samba.org:
/etc/rsyncd.conf configuration file. If you are using the option
rsync 2.5.6 security advisory
December 4th 2003
Background
The rsync team has received evidence that a vulnerability in rsync was
recently used in combination with a Linux kernel vulnerability to compromise
the security of a public rsync server. While the forensic evidence we have is
incomplete, we have pieced together the most likely way that this attack was
conducted and we are releasing this advisory as a result of our
investigations to date.
Our conclusions are that:
rsync version 2.5.6 and earlier contains a heap overflow vulnerability that
can be used to remotely run arbitrary code.
While this heap overflow vulnerability could not be used by itself to obtain
root access on a rsync server, it could be used in combination with the
recently announced brk vulnerability in the Linux kernel to produce a full
remote compromise.
The server that was compromised was using a non-default rsyncd.conf option
"use chroot = no". The use of this option made the attack on the compromised
server considerably easier. A successful attack is almost certainly still
possible without this option, but it would be much more difficult.
Please note that this vulnerability only affects the use of rsync as a "rsync
server". To see if you are running a rsync server you should use the netstat
command to see if you are listening on TCP port 873. If you are not listening
on TCP port 873 then you are not running a rsync server.
New rsync release
In response we have released a new version of rsync, version 2.5.7. This is
based on the current stable 2.5.6 release with only the changes necessary to
prevent this heap overflow vulnerability. There are no new features in this
release.
We recommend that anyone running a rsync server take the following steps:
Update to rsync version 2.5.7 immediately.
If you are running a Linux kernel prior to version 2.4.23 then you should
upgrade your kernel immediately. Note that some distribution vendors may have
patched versions of the 2.4.x series kernel that fix the brk vulnerability in
versions before 2.4.23. Check with your vendor security site to ensure that
you are not vulnerable to the brk problem.
Review your
"use chroot = no" then remove that line or change it to "use chroot = yes".
If you find that you need that option for your rsync service then you should
disable your rsync service until you have discussed a workaround with the
rsync maintainers on the rsync mailing list. The disabling of the chroot
option should not be needed for any normal rsync server.
The patches and full source for rsync version 2.5.7 are available from http://
rsync.samba.org/ and mirror sites. We expect that vendors will produce
updated packages for their distributions shortly.
Credits
The rsync team would like to thank the following individuals for their
assistance in investigating this vulnerability and producing this response:
Timo Sirainen
Mike Warfield
Paul Russell
Andrea Barisani
The Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the name CAN-2003-0962 to this issue.
Regards,
The rsync team
This is a repost troll who reposts other people's comments. MOD HIM DOWN - JUST READ HIS JOURNAL!
MS has a security fix released. At least, they dont get modded up to +5 that is for sure.
"Security breaches happen"... yeah, good attitude Lunix community! Keep that up !!
I thought eight years old was Malda's limit. His post INFORMED me otherwise.
Thus, he deserved the "Informative" mod.
Well it just goes to show how academia is totally divorced from the real world.
Nice algorithm or not if the security fucking blows ass then it sucks.
I agree that would be ideal, but it's easier said than done. I've got no other signatures on my GPG key now. I want to get some, but I don't know anyone else around here who does that sort of thing. How would I go about getting some? I know they have key signing parties at conventions and such, but I'm a college student, which means I have no money or time to attend such things.
People take advantage of conventions to organize key-signing parties because diverse groups of people from many geographic locales end up at conventions, and having people sign each other's keys strengthens the PGP "web of trust". However, you don't need geographic diversity for this to be useful.
Organize a local key-signing party. Surely there are many other computer geeks at your college interested in using PGP/GPG. Start getting the geeks together and sign each other's keys. If you can, try to get someone to join the party who is already connected to the worldwide web of trust that most well-known PGP keys are part of. If you can't get anyone well-connected to your key-signing party, don't worry! Creating a local web of trust at your college is a good start, and all it takes is one person who signed your key to get a signature from a well-connected key to get you well-connected yourself. And that can happen after the fact.
The PGP web of trust is a beautiful thing. You start out by creating little webs of trust amongst people you know. Over time, the little webs get linked together into larger webs, eventually getting linked into a global web of trust. Even if you don't know anyone in the global web of trust now, remember the "six degrees of separation" thing. If your friend signs your key, and his friend signs his key, and so on, sooner or later a signature is bound to create a path from the global web of trust to you, and bang! Now you're part of the global web of trust too, and can help link other people into it. Actually, it's better than that, because nobody needs to be your friend to sign your key -- just anyone who can verify your identity, whether friend, enemy or complete stranger.
When you create your local web of trust from scratch, take it seriously and do it right. Remember, you sign someone's key to indicate that you've verified their identity and that it's truly their key -- it's not an endorsement of the person in any way. If you despise the person and everything they stand for, but you're certain they are who they say they are and that the key you're asked to sign is their key and not another, then go ahead and sign the key. If you admire and respect a person who asks you to sign a key, but you can't be 100% certain of the person's identity and the true ownership of the key, don't sign it.
Key signatures aren't a popularity contest, it's all about verifying identity, nothing more. Don't sign a key just because someone you know appeared to email it to you; that email could be forged. Verify the key with that person through real-world mechanisms first, to make sure you aren't duped into signing the wrong key. This is where key-signing parties are helpful -- people can gather in a room, look at ID cards (e.g. driver's licenses), get a verified key fingerprint from the person, and sign the key, fairly confident that the identity they're signing is correct -- even if the key belongs to a complete stranger.
By the way, next time you complain that you can't get anyone to sign your key, you might specify your geographical location. Someone in the global web of trust with a well-connected key might offer to sign your key (especially if you'll organize a local key-signing party to "share the wealth"), but such a person is likely not to know you personally, so they'd have to meet you in person to verify your identity. And without knowing where you are located, nobody is likely to offer...
Deven
"Simple things should be simple, and complex things should be possible." - Alan Kay
What a pathetic troll. You have to START with a relevant remark, and WORK TOWARDS your offtopic, inflammitory position. You got it completely backwards.
In Soviet America the banks rob you!