Live data from Hacker News

Show HN: Android 'root' phones via dirtyc0w exploit

gist.github.com

11–20 of 72 posts

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#11
I wonder how many people carelessly run a script that downloads, builds, and executed something with root access. If that zip gets compromised (i.e. The source means harm) there is no end to the pain a careless user can endure. It is like blindly copying and running shell commands you don't understand with sudo rights.

My intention is not to offend the author by the way :). It is to remind people to understand these kind of scripts and their risks before you run them.

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#14
post #3

I put 'root' in quotes, because technically, it isn't rooting. However, it creates a binary called 'run-as' that can execute packages as root. Not sure what the right term would be in this case.

Well if you can run any executable as root, that sure counts as rooting in my book.

Sure, but as soon as it's patched out, you're back to no root.

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#15

I put 'root' in quotes, because technically, it isn't rooting. However, it creates a binary called 'run-as' that can execute packages as root. Not sure what the right term would be in this case.

A (somewhat cringeworthy) thread on how to gain persistence via this exploit is at https://github.com/timwr/CVE-2016-5195/issues/9

I think this would be a "temporary root", rather than something like CF-AutoRoot that gains persistence by modifying the system itself.

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#16

Good thinking! I wonder if it will get patched soon enough

The fix is out, but as always for nearly all Android users, they will remain vulnerable until they upgrade their device (but then they will have new unpatched vulnerabilities).

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#17

I put 'root' in quotes, because technically, it isn't rooting. However, it creates a binary called 'run-as' that can execute packages as root. Not sure what the right term would be in this case.

> Not sure what the right term would be in this case.

Maybe pseudo-sudo?

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#18
post #3

Earlier quoted context omitted.

Well if you can run any executable as root, that sure counts as rooting in my book.

Sure, but as soon as it's patched out, you're back to no root.

Maybe I'm missing something here, but what stops you from putting a setuid "su" binary and keeping the root access, even if the kernel is upgraded?

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#19

I put 'root' in quotes, because technically, it isn't rooting. However, it creates a binary called 'run-as' that can execute packages as root. Not sure what the right term would be in this case.

A (somewhat cringeworthy) thread on how to gain persistence via this exploit is at https://github.com/timwr/CVE-2016-5195/issues/9 I think this would be a "temporary root", rather than something like CF-AutoRoot that gains persistence by modifying the system itself.

It's painful to read. Only one person in that thread appears to know what SELinux actually does, and nobody has mentioned the fact that SELinux was explicitly designed to make a root privesc contained.

The ironic part is that since DirtyCOW is a kernel bug they could probably modify the exploit to disable SELinux from inside the kernel (or load a module that disables SELinux). But they're just trying to use the PoC as the only thing you can get from the exploit.

Re: Show HN: Android 'root' phones via dirtyc0w exploit

#20
post #11

I wonder how many people carelessly run a script that downloads, builds, and executed something with root access. If that zip gets compromised (i.e. The source means harm) there is no end to the pain a careless user can endure. It is like blindly copying and running shell commands you don't understand with sudo rights. My intention is not to offend the author by the way :). It is to remind people to understand these…

Came here to see this comment.
Post reply on HN