BufferLab/AttackLab

Lab Assignment L3: The Attack Lab: Understanding Buffer Overflow Bugs (a.k.a. Buffer Lab)

Assigned: Oct. 31th, Due: Monday, Nov. 11th. 11:59 PM

Download the Technical Manual here

Introduction:

This assignment involves generating a total of five attacks on two programs having different security vulnerabilities. Outcomes you will gain from this lab include:

Get Your Files

You can obtain your files by pointing your Web browser at:

http://lnxsrv09.seas.ucla.edu:15213/

The server will build your files and return them to your browser in a tar file called targetk.tar, where k is the unique number of your target programs.

Note:

Send the targetk.tar file to a (protected) Linux directory on the server in which you plan to do your work. Then give the command:

linux> tar -xvf targetk.tar.

This will extract a directory targetk containing the files described below. You should only download one set of files. If for some reason you download multiple targets, choose one target to work on and delete the rest. If your download fails constantly, we recommend trying the incognito browsing mode. If it still fails, you can reach out to diwu@cs.ucla.edu.

Please use lnxsrv 06, 07, 09, or 10 to do your attack lab. On the other servers, you may get a segmentation fault even with a correct solution for phase 2 and phase 3.

If you see 0x0a (new line character) in the address of touch1, touch2, touch3 or at the top your stack, the target is faulty because the exploit string will be automatically truncated at that new line character. You can request for a new target from the website.

Warning:

If you expand your targetk.tar on a PC, by using a utility such as Winzip, or letting your browser do the extraction, you’ll risk resetting permission bits on the executable files. The files in targetk include:

In the following instructions, we will assume that you have copied the files to a protected local directory, and that you are executing the programs in that local directory.

Getting Started

Once you have the lab files, you can begin to attack. To get started, download the pdf linked below. It is a technical manual which is a guide to to help complete each section of the lab.

Download the Technical Manual here

Logistics

Handin

There is no explicit handin. The system will notify your instructor automatically about your progress as you work on it. You can keep track of how you are doing by looking at the class scoreboard at:

http://lnxsrv09.seas.ucla.edu:15213/scoreboard