[Full-disclosure] Local suid files and buffer overflows

Pieter de Boer pieter at thedarkside.nl
Sun Oct 9 17:29:28 BST 2005


Werner Schalk wrote:

> Now I exploited it using Aleph One's shellcode (see  
> http://shellcode.org/shellcode/linux/null-free/) but I won't get a SUID 
> shell afterwards (I know the exploit did work but I still have my normal 
> user privleges). Why? I have tried a different shellcode to write a file 
> and this file was root:root. Any ideas, hints, rtfm? 
Some shells (at least bash, that I know of) drop privileges when uid != 
euid. That's why I 'always' use zsh, which doesn't do that ;)

-- 
Pieter



Full-Disclosure is hosted and sponsored by Secunia.