CISA Cyber Defense Exercises
Cyber Defense Lab - UMBC
CSEE Logo NIETP logo

Stack Smashing Defense: A Buffer Overflow Lab Exercise

According to statistics from Carnegie Mellon’s Computer Emergency Response Team, buffer overflow vulnerabilities accounted for about 50% of all reported security vulnerabilities in 2000. Most buffer overflow attacks compromise the victim application by overwriting the return address of the currently executing function with an address that points to malicious code stored at the beginning of the buffer. Typically the malicious code spawns a command shell with root level access. Other types of buffer overflow attacks are possible, such as application-specific attacks that overwrite local variables located higher up on the stack, corrupting the data used by the victim application. This exercise exposes students to a simple buffer overflow attack and covers the best known methods for protecting systems from these attacks.

Student prerequisites Student learning objectives Student deliverables: Writeup, about 2–3 pages, guided by questions at the end of the lab.

Download Exercise Materials