News for hackers. Stuff that matters.
Re:OS X 10.10.5 kernel local privilege escalation by gress on Sunday August 16, 2015 @10:17AM (#10068946)
This argument is a general argument for is irresponsible disclosure of 0-days.

You don't need omnicience to determine whether the downsides outweigh the potential benefits to a tiny number of jumpy elite who would have to be constantly following and applying patches.

Notably those patches couldn't be applied blindly - so all of those 'elite' in parallel would have to fully understand the exploit and patches lest these become just another attack vector.

There is clearly no justification for this. This isn't just irresponsible. It's a straight up attack on users.

Re:OS X 10.10.5 kernel local privilege escalation by mikeash on Sunday August 16, 2015 @12:03PM (#10069245)
Malware that uses this exploit to cause damage is a straight up attack on users. Merely revealing a vulnerability isn't an attack. The vulnerability was there all along, and there's no guarantee that this person is the only one who could find it, or even the first.

I'm all for responsible disclosure. But I think we need to clarify good and bad here. Responsible disclosure is better than just announcing findings to the world, but telling people about what you've discovered is not bad.

Re:OS X 10.10.5 kernel local privilege escalation by gress on Monday August 17, 2015 @02:29PM (#10075088)
Telling people about what you have discovered is bad if you can reasonably tell that those people are bad actors who will use the information you are giving them to do harm.

That's why it's responsible to tell the people who can be responsible for mitigating the problem in sufficient time for them to propagate a fix before publicizing the exploit in the knowledge that you are giving it to bad actors.

The fact that the vulnerability existed before and may have even been being exploited does absolutely nothing to change this.

If it was already being exploited but isn't publicly known then irresponsible disclosure simly makes the problem worse by increasing its availability to more bad actors who weren't previously in the know.

Re:OS X 10.10.5 kernel local privilege escalation by MagerValp on Sunday August 16, 2015 @02:06PM (#10069693)
There's writing a nicely worded letter, and sending it in a rose scented envelope. And then there's scribbling a note, tying it to a rock, and throwing it through the window.

Telling the world via a fully working exploit causes a ton of collateral damage, and the author made no effort at all to reduce the impact. Waiting for 10.10.5 and releasing it on a Saturday afternoon makes it seem like the point was to cause as big a mess as possible.

Re:OS X 10.10.5 kernel local privilege escalation by mikeash on Sunday August 16, 2015 @02:30PM (#10069787)
Maybe Saturday afternoon just happened to be when he finished.

And no, it's not like throwing a rock through somebody's window. The information may be used by other people to cause damage, but the mere act of releasing it is not by itself damaging. Let's put blame where it belongs: on the people actually using exploits for bad purposes. If you want to encourage responsible disclosure, don't lead with bad analogies about what happens when you announce a vulnerability to the world, because it just reduces your credibility.

Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Sunday August 16, 2015 @08:19PM (#10070806)
for the record: i had no idea yesterday was saturday at the time I dropped the code.
Re:OS X 10.10.5 kernel local privilege escalation by mikeash on Sunday August 16, 2015 @09:31PM (#10070997)
Nothing says "hardcore hacker at work" quite like forgetting what day of the week it is.
Re:OS X 10.10.5 kernel local privilege escalation by gress on Monday August 17, 2015 @02:40PM (#10075165)
Nothing says 'irresponsible' like not thinking at all about the impact of releasing information you know people will use for harm. Publishing to github comes after the hacking.

If qwertyoruiop had instead come up with plans for making a suitcase nuke from household ingredients, or for breeding an Ebola analog using a home beer making kit, your argument would imply that you think that posting them on the Internet would not be bad.

I disagree.

Re:OS X 10.10.5 kernel local privilege escalation by mikeash on Monday August 17, 2015 @03:03PM (#10075338)
And again with the ridiculous analogies.

It's really difficult to have a serious discussion about computer security vulnerabilities when people keep comparing it to throwing rocks through windows or weapons of mass destruction.

And yes, it's relevant, because the severity of a problem can and does influence how problematic various approaches are.

This is a local root exploit. Those are common and not generally problematic. The barrier to escalating from a normal user to root is at best the absolute last line of defense, and often completely irrelevant. It's a problem that should be fixed, don't get me wrong, but the severity is about 2 out of 10.

The fact that I think it's not a bad thing to release information like this has no bearing on what I would think about releasing information on building a suitcase nuke from household ingredients.

Could we try to keep the conversation grounded, here?

Re:OS X 10.10.5 kernel local privilege escalation by gress on Monday August 17, 2015 @04:54PM (#10076049)
If you had been saying before now that this wasn't a severe bug and so we shouldn't be too concerned about disclosure, then you wouldn't have been presented with these strong counterarguments.

But that isn't what you've been saying - rather, you've been making the general argument that releasing information is not damaging or bad, and that we should only hold the people who exploit vulnerabilities responsible - not those who disclose them. Multiple people have argued against you on this.

Now you have switched your position to 'It's not bad to disclose vulnerabilities unless they are severe'. This seems much more reasonable, and came as the consequence of you being presented with what you are calling 'ridiculous' analogies.

To me this seems like a serious discussion done right.

Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Sunday August 16, 2015 @03:18PM (#10069935)
> and the author made no effort at all to reduce the impact

http://github.com/kpwn/NULLGuard

Re:OS X 10.10.5 kernel local privilege escalation by MagerValp on Sunday August 16, 2015 @03:27PM (#10069965)
Thank you. Any particular reason you decided to lead with the exploit and not this patch?
Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Sunday August 16, 2015 @08:16PM (#10070799)
I did not have the patch ready when the exploit was published, that's the only reason why. I had my reasons to publish the exploit in public yesterday, but all I can say is "no comment".

Just for the record: I did inform Apple beforehand. Not so much before, but before.

I do not consider this to be their fault in any way as someone in this thread seems to be implying. Again, I had my reasons to drop such a thing publicly. I've had this for months, and I did not intend on disclosing at all. Proof of my "for months" assertion: https://www.youtube.com/watch?v=8arPid8GtFk

> As a bare minimum Apple needs a few hours to analyze the bug

Again, for the record: Apple has full details of the underlying bug. They won't even need to check my github at all.

Re:OS X 10.10.5 kernel local privilege escalation by MagerValp on Monday August 17, 2015 @01:59AM (#10071547)
That restores some of my faith in humanity, thank you. We'll be looking at the kext today at work, but due to Apple's kext signing requirements I don't know how feasible it is to roll it out.
Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Monday August 17, 2015 @07:49AM (#10072416)
I have asked on Twitter if anyone could sign it for me. For some reason neither of the two people who tried to do so were able to sign it. No idea why. kexts were signed but they kept getting rejected for some reason.
Re:OS X 10.10.5 kernel local privilege escalation by MagerValp on Monday August 17, 2015 @08:02AM (#10072444)
You need a developer ID with kext signing ability, not a regular developer ID:

https://www.google.com/search?num=30&q=site%3Adeveloper.appl...

Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Sunday August 16, 2015 @11:07PM (#10071195)
The video mentions iOS being vulnerable (around 1:00), but the exploit doesn't mention it. How vulnerable is iOS?
Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Sunday August 16, 2015 @11:40PM (#10071286)
iOS is vulnerable too as far as the vulnerability is concerned. It is not directly exploitable on iOS, however having a NULL task_t still does give you some abilities, even if not (directly?) SVC code exec.
Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Sunday August 16, 2015 @06:23PM (#10070484)
> You don't need omnicience to determine whether the downsides outweigh the potential benefits

I mean you'd have to be omniscient to make the optimal choice with absolute certainty. What if somebody with the most sensitive data you can imagine, gets infected and the data exfiltrated if they have to wait for Apple to patch this, but is safe after applying one of the suggested fixes from the exploiter? If you were omniscient you could tally up the total harm (or whatever metric you want to use) from various choices and choose the best one.

I recognize the mainstream-accepted calculus is more along the lines you are arguing for, and of course it makes sense to use probabilities and percentages since nobody's omniscient. But, given we don't know who else had this exploit, I still see some value in rapidly securing a few people rather than letting them remain vulnerable.

Re:OS X 10.10.5 kernel local privilege escalation by gress on Monday August 17, 2015 @02:35PM (#10075122)
Your argument that you'd have to be omniscient to make the optimal choice with absolute certainty is true of all human decision making at all times, and therefore doesn't change the argument at all.

You say 'given that we don't know who else had this exploit' there is value in rapidly securing a few people rather than letting them remain vulnerable.

The question here is has the public availability of the exploit secured more users from realistic attack than it has exposed?

The fact that the vulnerability wasn't publicly known before is evidence that it wasn't in widespread use. Not conclusive evidence, but evidence nonetheless. Not knowing who had the exploit before doesn't mean we have no information on which to base the decision, and certainly doesn't mean we should adopt a policy based on the idea that the exploit is currently in widespread use.

Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Monday August 17, 2015 @05:40PM (#10076327)
You are right that my argument is sort of philosophical and not practical.

> The question here is has the public availability of the exploit secured more users from realistic attack than it has exposed?

It probably has exposed more. But, it could depend on whether some OS X servers were patched, or company-managed OS X workstations, or virus-scanner definitions updated, which could simultaneously protect many users.

> certainly doesn't mean we should adopt a policy based on the idea that the exploit is currently in widespread use.

In the current climate, I'm not so sure. Maybe not "widespread" use since, as you say, it doesn't seem to be publicly known. But, if it were only in narrow use and the discloser has determined this was the fastest way to warn people, do those narrow victims deserve security less than everyone else? Some of the discloser's statements make me wonder if he does know of other exploiters. You can question whether he knows enough or has the right to make that call, but if he disclosed responsibly, you'd be trusting Apple in the same way. Are they inherently more capable of making a good decision just because they're a corp?

P.S. It's interesting that you seem to rely on "the community" to notice whether this was being exploited by malware, but are mad at somebody from "the community" reporting it without it having been exploited by malware. Of course I understand the reason this may not be the best way for it to be reported, but maybe we should be glad this was found and reported at all, for free, by someone in "the community." It almost seems entitled, to expect someone else to do you a favor for free, and for you to also dictate the terms.

Re:OS X 10.10.5 kernel local privilege escalation by gress on Tuesday August 18, 2015 @02:18AM (#10077815)
Warning people isn't the issue. Apple is without question in a position to distribute a patch more rapidly and more widely than anyone else. It has nothing to do with trusting them because they are a 'corp'.

There is nothing 'entitled' about the opinion that it's wrong to distribute information about malware publicly where it can be used by bad actors, without first giving vendors a chance to distribute a fix.

Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Tuesday August 18, 2015 @04:05AM (#10078032)
Technically in this case, Apple was given advance notice: https://news.ycombinator.com/item?id=10070799 . I'm guessing we'd all agree it was not a reasonable amount of time to actually fix it... but then who gets to decide what that is? If I'm counting right, it took over a month for Apple to patch DYLD_PRINT_TO_FILE, which was disclosed in a similar way.

IMO's it's naive to think nobody else knew about these relatively simple exploits, so I don't blame the reporter too badly for deciding they don't want to wait weeks for Apple to fix it, if they can fix it themselves in hours. It's useless for Apple to be "in a position to distribute a patch more rapidly and more widely than anyone else" if they don't actually distribute a patch rapidly. I guess we'll have to wait and see how rapid they are this time.

I guess we'll have to agree to disagree. I'm at least glad to read around a bit that it's a controversial topic, so we're both in good company in our respective opinions.

Re:OS X 10.10.5 kernel local privilege escalation by gress on Tuesday August 18, 2015 @04:51PM (#10082116)
You keep saying things like 'who is to decide?'. If you really believed that, you would cease posting your opinions here.

The point about people not wanting to wait for Apple is valid in that certain people can protect themselves ahead of apple distributing a fix.

However it clearly doesn't change the calculus since the number of people who can protect themselves is miniscule compared to the number of people made vulnerable. Even if it takes a month, that is going to distribute the patch far faster than this.

There is nothing controversial about this. It's a matter of statistics.

Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Tuesday August 18, 2015 @08:11PM (#10082993)
When I say "who is to decide?", I mean, as we have discussed, there is no way to be absolutely sure of the best course given the unknowns, so that reasonable people can differ, and they will, based on differing ideologies on things like risk management, duties to the public, and personal agency.

As for controversy, maybe I overstated that, but your flat counterstatement with no elaboration or support isn't going to change anyone's mind.

Re:OS X 10.10.5 kernel local privilege escalation by gress on Wednesday August 19, 2015 @12:38AM (#10083707)
You keep saying 'there is no way to be the absolutely sure' - but this is a truism that applies to all of human decision making.

You are using it to make the situation seem less clear than it is rather than responding to a clearly articulated critique of your position.

If you differ on any of these topics why not say what you believe?

Re:OS X 10.10.5 kernel local privilege escalation by scintill76 on Wednesday August 19, 2015 @06:46PM (#10089061)
It does apply to all of human decision making, which is why we have different political parties, different schools of thought within a scientific field, different types of government etc. My point is that full disclosure vs. secrecy (and various points inbetween) is an instance of that type of dilemma, so that only a closed-minded person would insist their particular choice is the only position that is always right.

As an example of how "responsible disclosure" can fail, read https://en.wikipedia.org/wiki/Shellshock_(software_bug) . It was embargoed until a patch was ready, but the patch itself invited exploitation attempts and further scrutiny which revealed additional vulnerabilities. It was quite a mess, but IMO the only "best practices"-based way to avoid it would have been to never have introduced the vulnerability in the first place. Elsewhere in this thread, I cited an instance of Apple taking three years to fix a vulnerability responsibly disclosed. Would you say it was better to let that vulnerability sit for three years than to disclose it immediately so that it would get fixed within a few months? Obviously none of this proves we should jump to instant full disclosure, I just mean the existing approaches all have issues, so there is room for personal opinion and judgment. I don't even feel strongly about second-guessing this particular instance, because I'm betting the discloser knows more than we do. (And if you don't trust him, refer to my previous comments -- why trust Apple, when they have a record of being fairly slow?)

If I'm obfuscating by saying we can't know, you're making it deceptively simple by claiming you do know with broad statements like "the number of people who can protect themselves is miniscule compared to the number of people made vulnerable" (even though I've argued third parties can help secure unknowledgable users, if the issue is publicly disclosed before an Apple patch), "It's a matter of statistics", "the fact that the vulnerability wasn't publicly known" (how do you define "public" in a way that is both meaningful to your position and can be exhaustively searched to prove the "fact" that this wasn't known?).