Badlock vulnerability disclosed
badlock.org
badlock.org
If so, I'm struggling to not agree that this has been overhyped a lot.
The web site is nothing to do with the Samba Team. Having said that, this is an important enough bug that lots of vendors need to patch immediately, and the website really helped let them know that they needed to address this as soon as possible.
Could it have been handled better ? Maybe, but you get back to me after you've coordinated security disclosure for 15+ major product vendors and give me some tips :-).
My comment related to the hype surrounding this bug, which I see (from an infosec point) as a bad thing.
From https://www.samba.org/samba/history/security.html it looks like there were 8 CVEs for bugs in samba this month and 14 in Microsoft's monthly patch bulletin (https://technet.microsoft.com/library/security/ms16-apr)
Should all of those have logos and websites...? Do the other issues in these releases not need to be fixed...?
So why is it a bad thing? Well to me it contributes to "vulnerability fatigue". the more issues that get hyped up and then don't turn out to be objectively more serious than many other issues that are getting release, the more people will dismiss efforts to draw attention to issues that come up.
Not trying to mitigate someone else's hype, but from the Samba point of view this is one of the most serious bugs we've ever had to fix I think. We've had worse bugs that only affected Samba (root-level compromises, shudder), but the effect of this one is the most widespread.
Because, didn't the Welchia worm target DCE RPC?
I'm curious who those vendors are that have trivially MitM'able networks.
I only skimmed the CVEs, and from painful memories of having to implement all that shit for scanner products, that whole bundle of protocols is just "SMB" in my head --- in particular, DCERPC to me is "stuff you do over a named pipe".
Update FAQs
My application or product uses the SMB protocol, does this issue affect me?
- No. Only applications and products that use the SAM or LSAD remote protocols
are affected by this issue. The SMB protocol is not vulnerable.
"An elevation of privilege vulnerability exists in the Security Account Manager (SAM) and Local Security Authority (Domain Policy) (LSAD) remote protocols when they accept authentication levels that do not protect them adequately. The vulnerability is caused by the way the SAM and LSAD remote protocols establish the Remote Procedure Call (RPC) channel. An attacker who successfully exploited this vulnerability could gain access to the SAM database.To exploit the vulnerability, an attacker could launch a man-in-the-middle (MiTM) attack, force a downgrade of the authentication level of the SAM and LSAD channels, and then impersonate an authenticated user. The security update addresses the vulnerability by modifying how the SAM and LSAD remote protocols handle authentication levels."
Also this web site seems to be overloaded, and there's not even any links to the relevant MS16-0xx patches. Not so impressive :(
Hmm, let's recap:
0. Samba has, for years, been a pure clusterfuck to compile and build yourself, attempts at getting community help from the mailing list are always deflected with "don't do that, use SerNet's binaries". Distribution packages as well are not supported by the Samba community, it's SerNet or GTFO.
1. SerNet stops distributing precompiled Samba binaries for free. Thus, users are forced to either buy absurdly expensive "samba+" licenses (250€/server/year!) or to stick to distribution packages, which are still at 4.1.
2. Samba, led by SerNet, stops supporting 4.1.
3. Samba announces "Badlock" _several weeks_ in advance and helpfully points out that, since 4.1 reached EOL a week earlier, users will have to upgrade to versions that are only available from source or as paid SerNet binaries.
I'm sure there's absolutely no malicious intent behind this whole ridiculous charade.
This is a large coordinated effort. Expect patches from other non-Samba using vendors shortly.
Coincidentally, Samba 4.4.0 was released on the same day: https://lists.samba.org/archive/samba/2016-March/198501.html
There are some additional NTLM m-i-t-m bugs being fixed in Samba at the same time, but the main bug is authentication independent.
Hyper-v guest escape[0]
Local privilege escalations[1][2]
DOS for IIS/http.sys[3]
Also, there is a different MitM that allows dumping the SAM database[4]
[0] - https://technet.microsoft.com/library/security/MS16-045
[1] - https://technet.microsoft.com/library/security/MS16-046
[2] - https://technet.microsoft.com/library/security/MS16-048
[3] - https://technet.microsoft.com/library/security/MS16-049
[4] - https://technet.microsoft.com/library/security/MS16-047
So yeah, it's high impact.
Have we really come to the point where it's now "Having access to the internal network is a 'game over' scenario for 95% of real-world networks" ?
WTF is happening to our security ?
Some of our largest and savviest clients would pay us to do "internal network penetration tests". Despite these clients having huge security teams and despite internal network security being so important to them that they'd actually spend consultant dollars to test it, those projects were invariably a bonanza for the testers.
I think this explains some of the reaction on Twitter from software security people: if you've done consulting work, you already assumed these networks were totally insecure.
I must confess, on my own internal networks I've moved to trying to avoid any unencrypted traffic on the network. SMB3 helps a lot with this (finally Windows clients will do SMB-level encryption to servers).
There's also tools like bettercap (https://www.bettercap.org/docs/) which can already use various tricks to grab creds once a MiTM is sorted..
Of course, I bet few networks are actually set up this way. But correctly configured Windows/Samba networks should be safe from this.
If the attacker has can MITM you and encrypt your traffic then you are probably screwed already.
2) The Heartbleed page explained the bug; the Badlock page doesn’t seem to do so!
The hype comes from people not understanding the impact, pure and simple, and overinflating it as it gets passed around. The name just makes it easier to pass around in the process.
A good solution would attack the understanding of impact part of it--maybe a severity rating system like we have for tornados, earthquakes, or other catastrophic disasters?--not so much the naming. Making it easy to talk about is great, as long as we make it easy to talk about accurately.
I have a vuln I was considering naming, but after BadLock I'm strongly reconsidering it.
Yes they are bad and people should patch, but did it really need such a build up, and how did the build up help?
Having samba accessible from the public internet is a issue in itself, regardless of this exploit. The MITM is dangerous I guess, but it's a MITM. It's bad, but not super-hypetrain mega-branding bad. It's not colleagues talking about it at lunch bad. Plus all the shady stuff other people have commented on here.
Edit: having re-read the release ok, yeah, it's pretty bad. I still think you overdid it on the release though.
About 18 months ago, I was asked to look into an issue one of our customers was experiencing (we're primarily an ISP but we also provide some managed services to our customers as well). They had several Windows (2003 and 2008) servers sitting on the public Internet, with public IP addresses, not behind a firewall.
Among several other "WTFs?", their primary domain controller was being used 24/7 in DoS (amplification) attacks by way of the DNS service. Of course, every other port that Windows exposes by default was open and accessible to the world on this machine (and several others).
Don't underestimate the clusterfucks that can happen when so-and-so's nephew who is "good with computers" is allowed to run things.
http://webcache.googleusercontent.com/search?q=cache:ZKTmHGz...
I didn't read closely but it seems to be mostly MITM