Linux PIE/stack corruption
qualys.com
Linux PIE/stack corruption
1–10 of 11 posts
Re: Linux PIE/stack corruption
#2So if you can craft and execute an executable, and you can write to things that you already have write access to, how does that result in a privilege escalation?
If you could overlap with things you shouldn't be able to access, e.g. your kernel stack, then that makes sense. But how does being able to overlap your own user-space result in you being able to do anything you previously couldn't?
Re: Linux PIE/stack corruption
#3> the loader can allow part of that application's data segment to map over the memory area reserved for its stack resulting in corruption of the stack, with possible privilege escalation So if you can craft and execute an executable, and you can write to things that you already have write access to, how does that result in a privilege escalation? If you could overlap with things you shouldn't be able to access, e.g.…
A better link would have been https://www.qualys.com/2017/09/26/cve-2017-1000253/cve-2017-... which also explains an actual exploit.
Re: Linux PIE/stack corruption
#4Most (all?) major distributions (that were affected) have already released patched kernel packages.
Re: Linux PIE/stack corruption
#5> the loader can allow part of that application's data segment to map over the memory area reserved for its stack resulting in corruption of the stack, with possible privilege escalation So if you can craft and execute an executable, and you can write to things that you already have write access to, how does that result in a privilege escalation? If you could overlap with things you shouldn't be able to access, e.g.…
You can exploit existing binaries such as ping that have special capabilities or are setuid to get privilege escalation. A better link would have been https://www.qualys.com/2017/09/26/cve-2017-1000253/cve-2017-... which also explains an actual exploit.
(But e.g. ping doesn't >128MB .data+.bss? ;) )
Re: Linux PIE/stack corruption
#6> the loader can allow part of that application's data segment to map over the memory area reserved for its stack resulting in corruption of the stack, with possible privilege escalation So if you can craft and execute an executable, and you can write to things that you already have write access to, how does that result in a privilege escalation? If you could overlap with things you shouldn't be able to access, e.g.…
Re: Linux PIE/stack corruption
#7>he loader could allow part of that application's data segment to map over the memory area reserved for its stack, potentially resulting in memory corruption
do they expect an attacker to redirect code execution to an address on the stack which they previously wrote when loading the binary, so they can make use of suid to escalate priveliges ?
Re: Linux PIE/stack corruption
#8Earlier quoted context omitted.
You can exploit existing binaries such as ping that have special capabilities or are setuid to get privilege escalation. A better link would have been https://www.qualys.com/2017/09/26/cve-2017-1000253/cve-2017-... which also explains an actual exploit.
Fair enough. (But e.g. ping doesn't >128MB .data+.bss? ;) )
Re: Linux PIE/stack corruption
#9Re: Linux PIE/stack corruption
#10This was/is really interesting work but should maybe be marked [April 2017] or something so waking sysadmins don't get a fright.