Buffer Overflows and Memory Alteration

July 31, 2019 ยท View on GitHub

Overview

Buffer Overflows are a common vulnerability. We will discuss how to exploit a buffer overflow to alter memory on the stack, changing variable values and return addresses in order to control the flow of execution in a program.

Program to Explore the stack

stackframe.c stackframe

image

Vulnerable Program

stackframe_vuln.c stackframe_vuln

Contents

  1. 1Overview
  2. 2Program to Explore the stack
  3. 3Vulnerable Program