Mac OS X Lion LDAP Vulnerability Emerges
hypnosec tips a bit of Apple news from late last week that got overshadowed by the headlines about Steve Jobs. According to El Reg, "People logging in to Macs running OS X 10.7, aka Lion, can access restricted resources using any password they want when the machines use a popular technology known as LDAP for authentication. Short for Lightweight Directory Access Protocol, LDAP servers frequently contain repositories of highly sensitive enterprise data, making them a goldmine to attackers trying to burrow their way into sensitive networks." Initial reports about this bug cropped up less than a week after Lion was released.
Sounds more like a problem in the servers if they're allow this access.
and I dont even have to read the article!
aren't Macs suppose to be secure. at least thats what the I'm a mac commercials always told us.
Actually, this is only a problem if you can actually get Lion to bind to your AD Domain in the first place. Stupid legacy .local domain suffixes....
I know Taco used to extol Mac security, and now that he's dead and gone we can't use this as evidence to prove him wrong. Rest in peace my friend; I'll miss these spirited debates.
Don't worry, I am sure Apple will soon release a statement explaining that LDAP works on Lion as long as you hold your laptop in the correct way.
Once we own an LDAP server we own everything
Uhhh, say what?
I guess you could learn my cellphone number, but seeing as its somewhere in between 000-000-0000 and 999-999-9999 its not top secret. I suppose you could change my home directory to /tmp, just to piss me off, at least for a little while. You could delete my ldap account, now that would thoroughly annoy me until I restored the ldap server data from its backup...
Part of the problem is I've never seen a LDAP deployment without its buddy kerberos doing the password stuff. I guess its possible to use LDAP to do passwords, but I've never done it. I would think it would be kind of awkward, like using cfengine to do moves/adds/changes inside your passwd file. Maybe there exists a linux PAM module to change passwords etc inside LDAP, creating ldif files and running ldapmodify to change my password would get old real quick. I would guess the testers probably didn't even set up to do something that weird, assuming everyone would use kerberos with ldap.
I suppose if you consider nuclear missile launch codes to be "directory information" and thus keep them in your ldap, or more realistically keypad door combinations, then you could be in big trouble. Medical records at a hospital in a LDAP?
"Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
This is simply pathetic.
We're talking about basic attack surface testing here. And here goes the "Mac are safer" reality distortion starting again...
I've been unable to reproduce this with AD authenticated Lion 10.7.1. The stories I've read referenced OpenLDAP and LDAP in general, but I haven't seen AD mentioned yet. Has anyone gotten this to work with AD?
I like music
to last week.
Old news is old.
I have a 10.6.8 ODM with Kerberos. I cannot duplicate the vulnerability cited in the article on 10.7.1 client, so unless this issue exists with domain controllers that ARE using Kerberos, this is a non-issue. I don't even know how you would turn it off unless you didn't setup your domain properly in the first place, and even then you'd get half a dozen warnings that alert you to a misconfiguration, provided you know where to look.
... with any password.
A few pointers. Don't use LDAP for authentication. use Heimdal Kerberos for authentication (PAM) and use LDAP for authorization. (NSS). Don't let machines bind as cn=Manager. That is very bad should a machine become compromised. Generally, SASL LDAP binds are recommended over simple. Kerberos should bind
And most relevent. Only let users in the People OU bind to their own uid in the suffix.
If you are binding to the tree with cn=Manager, on a regular basis, you deserve what you get, set your ACLs right.
I'm not quite sure what the 'bug' here is.. First off, Apple's LDAP is 'OpenLDAP'. So. Is this a flaw in OpenLDAP or Apple's configuration for OpenLDAP?
Also.. LDAP is kinda like DNS, except most places don't secure it. To see this in action, download Apache LDAP Studio, connect to your friendly local LDAP server and start browsing around (without authentication).. Most times you can get an almost full LDAP dump from a remote server without authenticating at all. Generally the only 'protected' elements are the passwords. You can enumerate users, groups, etc.
Seriously, if you're only finding out about this right now... you need to get the f*** out of computing.
Seriously, would it kill them to do better then forum reading and printing post almost verbatim. The issue as i understand it is that if you have a mac os 10.7 open ldap server or apple open directory it will either not let user login or let them login without password. but nobody has any details, or my googlefuu failed me... Still that should have been caught in beta.
IMV, it's not as bad as it's made out.
The way LDAP authentication is supposed to work is:
1. Client connects to server to find exactly where in the tree the user's information resides (the user's DN). This is not particularly sensitive - it's usually done either anonymously or with an account with very little privileges.
2. Client drops the connection then tries to re-connect using the DN it found out in (1) and the password supplied by the user.
3. If the server responds that the login has succeeded, let the user use the service. If not, refuse.
A number of people have followed the logs on their LDAP servers and established that OS X Lion isn't carrying out step 2 at all. So provided the user ID supplied is valid, the user can log into the computer.
It's important to note that this process is repeated for every process you want to use. Kerberos makes life a little easier (the server supplies a token to say "This user has logged in OK" and that token can be used to authenticate against services that support Kerberos). In any case, the person is logged into the computer but cannot access network resources. Nevertheless, it's an absurd fault that should have been picked up in testing, I have no idea how it could possibly slip the net.
I've deployed LDAP Mac enterprise environs.
First of all, I always sort of assumed OpenLDAPs to be pretty much open within the context of a secured network. Not the passwords themselves, but the trees and branches of users and orgs.
Second, me wonders if this has something to do with a feature of Apple's Directory Services/LDAP implementation, which allows the admin to masquerade as *any* user on the system. Essentially, if you have an admin password, you can type in the name of any user in the system, and if you supply the/a admin password, you'll have instant access to any users desktop from the login prompt.
I've tried nothing to recreate or investigate this issue. But the article struck me as not-completely well conceived, so part of me wonders if those who are reporting this bug are simply using an admin password and gaining access to every account - a documented a configurable feature - and reporting it as a massive security flaw.
a bit of Apple news from late last week that got overshadowed by the headlines about Steve Jobs
1. Discover an embarrassing vulnerability in your OS.
...
2. Relapse into fatal cancer and resign as CEO, drowning your goof in media noise.
3. ???
4. PROFIT!!!
You have to admire the guy's genius, dedication, and unmatched PR skills
I just tried it with a Lion client bound to an OS X 10.6 server using OpenDirectory, and I couldn't replicate the problem.
So is Lion doing something non-standard when connecting to OpenLDAP servers? I noticed that in the main thread it was mentioned that they weren't using the full Apple LDAP schema.
What, me worry?
You use mac OSX on servers? and what do you do with linux then?
-- no sig today
This is a show stopper for us in deploying Lion,
We are a Linux (SL 5.5) and OS X site, Linux on all servers/cluster, OS X on all desktops. All passwords are stored on an OpenLDAP server and home directories on NFS3/4 fileservers.
What this means is this:
Person A can login into their account on an OS X Lion machine, their home directory is attached via NFS and everything works as expected. Person A then does a logout.
Person A then logs back in but enters Person B's name and anything they like for the password, the OS X machine does not reject the password but accepts it and logs A in as B complete with attaching their NFS directory. Person A can now access anybodies files they like because Lion ignores the password.
A serious serious case, of course you may argue that root could do this anyway exploiting the known loopsholes in NFS but the point is this is not a root loophole this is a user doing it.
Until this is fixed Lion is not going on our desktop machines.
Or it will be patched within weeks and will be part of the next Software Update. What precedent can you provide that would suggest otherwise?
My company uses OpenLDAP for user authentication in the datacenter and ran across a strange problem that seems very similar to this. It was present in at least OpenLDAP 2.4.16. We tracked it down to a weird problem in the password policy overlay. If I recall right it was the password policy overlay was returning a successful response to updating the last failed login time attribute but that was being passed up and causing binds to return true also. Our solution was to remove the password policy overlay and we have not gone back to revisit it.
I do not know if OpenLDAP in Lion uses the password policy overlay but if it does it would be an easy test to disable it and see if the problem persists. I post here because I don't really feel like registering to a Mac related forum that I will only post once on. I hope someone finds this and finds it useful.