iSync vulnerability for OS X +fix (?)

There was a big security dump on OS X a bit ago, but that got picked up enough I didn't really worry about it. This one is a little odder, Secunia is reporting that mRouter, via iSync, has a buffer overflow:

The vulnerability is caused due to a boundary error in the handling of the "-v" and "-a" command line options. This can be exploited to cause a buffer overflow by supplying an overly long argument (over 4096 bytes). Successful exploitation allows execution of arbitrary code with the privileges of the mRouter application.

Mac OS 10.3.7 and under are affected, but remember that while this isn't good it's a local attack and not remote. I.E., the evildoer would need access to your system in some way. Either by sitting at the keyboard, or through a piece of malware or something else in that vein. This is the type of thing someone exploits to completely own your box once they've gotten onto your system another way.

No patch from Apple (yet) and possibly won't be for older systems, but there is a fix...

Remove the setuid bit from: "/System/Library/SyncServices/SymbianConduit. bundle/Contents/Resources/mRouter"

Since that'll be greek to most people... with a unix, you normally think in terms of three groups of permissions: owner, group, and everybody else. There's a fourth set though, and when these permissions are set any user who runs that executable file assumes the user ID of the owner (or group) of the executable file. Yeah, scary, but hey, there are cases in a unix system where you need to be able to do that.

To remove the setuid bit from mRouter, dropping the following command into your terminal should work, after entering your password (all one line):

sudo chmod a-s /System/
Library/SyncServices/SymbianConduit.
bundle/Contents/Resources/mRouter

Please remember that it's 8am, and I'm on my first cup of coffee, so if this screws something up regarding iSync in some way I'm not going to worry about it... but that's how you turn off the SetUID bit if you're worried.

However, if you end up doing it and need to turn it back, this command should do it (all one line):

sudo chmod 4755 /System/
Library/SyncServices/SymbianConduit.
bundle/Contents/Resources/mRouter

Remember that neither I nor the cow is responsible for you hosing your system in any way. I'm willing to go turncoat on the coffee, though.

yummy alcohol posted button Posted by drunkenbatman
    January 27, 2005, at 08:37 AM


Comments (6)




Post a comment



Anonymous comments are allowed, but please enter something for a name.

And do endeavor to appear sane.









Remember personal info?