2 ms·
Can someone explain this a bit? While I can understand how these bugs arise, I'm not the best at exploiting them. The summary states, > disclosed a glibc NUL
by deathanatos 12y ago
Can someone explain this a bit? While I can understand how these bugs arise, I'm not the best at exploiting them.
The summary states,
> disclosed a glibc NUL byte off-by-one overwrite into the heap.
> a full exploit (with comments) for a local Linux privilege escalation.
Normally, I wouldn't see how such a bug could lead to privilege escalation. (glibc runs in userspace, after all.) But it is glibc, and glibc is everywhere.
I think the key is in the source code, where they state,
// It actually relies on a pkexec bug: a memory leak when multiple -u arguments are specified.
pkexec is setuid, so if it has a bug, then it's a great target for privilege escalation. Is the exploit the fact that they're passing bogus arguments to pkexec in such a way as to trigger this bug, corrupt the heap, and cause pkexec to either execute a binary of their choice or execute arbitrary code?
- yoha 12y agoYes, you got it. Lots of escalation privilege exploits target a binary run as root or a segment of code in the kernel and take control over it. The objective is usually to spawn a new process, a shell, from the initial process: it will have the same permissions (root) but allows to run commands easily (instead of having to write specific code).