|
Secure Programming
Writing Secure code Dec 27 2002 12:46PM Rahul Chander Kashyap (rahul nsecure net) (6 replies) Re: Writing Secure code Dec 27 2002 06:03PM Valdis Kletnieks vt edu (2 replies) RE: Writing Secure code Dec 27 2002 08:51PM Roger Alexander (rta cs colostate edu) (1 replies) RE: Writing Secure code Dec 30 2002 12:41PM Matt McClellan (mmcclellan nfr com) (2 replies) Re: Writing Secure code[update] Dec 31 2002 10:20AM Rahul Chander Kashyap (rahul nsecure net) (2 replies) Re: Writing Secure code Dec 27 2002 05:43PM John Viega (viega list org) (2 replies) |
|
|
Privacy Statement |
> main() { exit(0); }
>
> is completely secure and not exploitable. Beyond that, you're on your own
Wrong.
If you don't link it statically, it's vulnerable to a shared library replacement
of the exit() function in libc. This type of error is the basis of all
the LD_* exploits.
--
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech
[ reply ]