Question: For this task, you may use online resources to show a program with buffer overflow vulnerability, but please cite these online sources. The diagrams should
For this task, you may use online resources to show a program with buffer overflow vulnerability, but please cite these online sources. The diagrams should be your own (not copied from the online resources). Write a testing program in C language that contains a stack buffer overflow vulnerability.
Show what the stack layout looks like and explain how to exploit it. In particular, please include in your diagram:
1. The order of parameters (if applicable), return address, saved registers (if applicable), and local variable(s),
2. Their sizes in bytes,
3. Size of the overflowing buffer to reach return address,
4. The overflow direction in the stack. You are not required to write the real exploit code, but you may want to use some figures to make your description clear and concise.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
