News for hackers. Stuff that matters.
Re:OS X 10.10.5 kernel local privilege escalation by abhv on Saturday August 15, 2015 @11:12PM (#10067828)
(1) Can I also ask how you found this? Were you fuzzing Iokit?

(2) I'm trying to work through your ROP. Can you explain a bit more? Thanks.

Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Saturday August 15, 2015 @11:26PM (#10067863)
1) I cannot really discuss specifics, but this particular bug would have been hard to find via a traditional IOKit fuzz, since it requires an invalid 'task' port passed over to IOServiceOpen. Most fuzzers use mach_task_self for that, and fuzz method calls/traps/properties/etc.

2) When IOServiceRelease is called, vtable+0x20 is called. the vtable pointer is controlled, at +0x20 I place a stack pivot, which sets RSP = RAX and pops 3 times. At 0x20 I place a POP RAX;RET gadget to let the chain begin after 0x28. Payload then locates the credentials structure, sets UID to 0 by bzero()ing, cleans up the memory corruption, decreases the task count for current user and increases task count for root. It then unlocks locks held by IOAudioEngine to prevent your audio from freezing up, and then returns to the userland context.

Re:OS X 10.10.5 kernel local privilege escalation by qwertyoruiop on Sunday August 16, 2015 @08:23PM (#10070817)
for the record: "At 0x20 I place a POP RAX;RET gadget" should be "At 0x18 I place a POP RAX;RET gadget".