




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























CSC 405 Dr. Peng Ning 1 Computer Science
Program Security
Buffer Overflows
An Example of Stack Buffer Overflow service(){ get_msg(); A:send_msg(); } get_msg(...){ char buf[96]; ... gets(buf); ... B:return; } get_msg buf[96] RA = A saved FP RA = Y saved FP service RA = Z saved FP main get_msg malcode malcode RA = m m m service main
Time-of-Check to Time-of-Use Errors
Example
Virus
Trojan Horses
Trapdoor (Backdoor)
Worm
How does Virus Work
Places to Insert Virus Code
Places to Insert Virus Code (Cont’d)
How Virus Gain Control