Question: - Write a C program that contains a stack-based buffer overflow and make it SUID root. Run the program outside of the debugger as an
- Write a C program that contains a stack-based buffer overflow and make it SUID root. Run the program outside of the debugger as an unprivileged user and exploit the overflow to obtain a root shell. Include a description of exactly how the program was exploited, and a screen shot showing that a root shell was obtained. (Note: The lab will help)
- Give an example of a program that contains an integer overflow error and explain the problem. Correct the flaw by implementing appropriate range checking. Do not change the types (int, unsigned int, etc) of any of the variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
