Re: [Announcement] "Exec Shield", new Linux security feature

Andi Kleen (ak@suse.de)
04 May 2003 17:48:39 +0200


Ingo Molnar <mingo@redhat.com> writes:

>
> ie. if the binary anywhere has code that does:
>
> system("/bin/sh")

You just need system(char *arg) { ... } (= in every libc). Then put /bin/sh somewhere and
a pointer to it on the stack as argument and overwrite some return address on the
stack to jump to it.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/