What was supposed to be the most restricted isolated process in the Android system actually possesses numerous privileges—a truly peculiar paradox.
* Random UID, a former MagiskHide bypass solution, which Magisk has already addressed.
https://t.me/magiskalpha/255
* App Zygote's setuid capability was unrestricted when SELinux was disabled; now invalidated.
https://t.me/vvb2060_Channel/81
* App Zygote can detect SELinux status; KernelSU (KSU) has already addressed this.
https://t.me/magiskalpha/714
* App Zygote native lacks unshare and shares the same mount namespace as init, making it impossible to hide.
https://t.me/vvb2060_Channel/60
Now, we have discovered yet another privilege of the isolated process: Process Traversal. The isolated process possesses GID 3009, granting it unrestricted access to /proc.
This capability has existed since the inception of the isolated process, yet went unnoticed for 10 years. In 2020, Project Zero accidentally discovered that App Zygote possessed GID 3009. Unfortunately, they failed to notice that the longer-existing isolated process suffered from the exact same issue. To make matters worse, the fix patch deliberately ignored the isolated process scenario, clearing groups only for is_child_zygote—an ironic outcome, to say the least.
Because we observed wild exploitation in a certain hardening packer, we have decided to directly disclose the details of this vulnerability. We have also written a PoC, using root detection as an example:
https://github.com/LSPosed/Privisolated