You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be easily defeated with a small bit of locking around process creation, which is sorely needed anyway...
Unfortunately, my bandwidth (and, worse, interest) in working on ToaruOS is quite low at the moment, so it is unlikely I'll be able to implement a mitigation any time soon. Security in ToaruOS is largely theater anyway - enough to prevent benign software from making obvious mistakes, but there are a great many TOCTOU errors (and immensely more of them ever since SMP support was added).
This is such a tight window I wasn't able to get the PoC to work - but it did routinely exhaust memory from the hundreds of sudo processes (I really need to get around to implementing file mappings with CoW), or instigating a kernel crash related to PTY blocking (yikes... might make a separate ticket for that).
In
elf_exec
, there is a small window between ptrace attach to the process and before it checks is that process is attachedSo, sometimes a privileged process is traced by an unprivileged process.
POC (Updated) :
By tracing the sudo process, the un-privileged process can leak many users' passwords:
The text was updated successfully, but these errors were encountered: