lab04 - Lab 4 - Injection CSE 4481 4.0 Computer Security...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 4 - Injection CSE 4481 4.0 Computer Security Lab, Winter 2012 Due: Sunday, Feb 19th, 2012, 11:59pm. Format: Individual Learning Objective: To understand various injection problems such as command injection, code injection etc. Injection attack is the exploitation of software bugs caused by processing invalid data. The goal of this lab is to study ways to exploit different injection vulnerabilities and demon- strate the damage that can be achieved by such an attack. Task 1 The following program runs with root privileges and is supposed to execute the /bin/ls com- mand. However, the programmer only uses the relative path for the ls command, rather than the absolute path: int main() { system("ls"); return 0; } Utilizing this program, devise a way to run arbitrary code with root privileges. Also, devise a way to get a root shell. Report: Describe the process you followed to achieve the two goals above. Task 2 Bob works for an auditing agency, and he needs to investigate a company for suspected fraud. For the purposes of the investigation, Bob needs to be able to read all the files in the company’s Unix system. On the other hand, to protect the integrity of the system, Bob should not be able 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
to modify any file. To achieve this goal, Vince, the superuser of the system, wrote a special set-
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2012 for the course CSE 1520 taught by Professor Kemeny during the Fall '08 term at York University.

Page1 / 4

lab04 - Lab 4 - Injection CSE 4481 4.0 Computer Security...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online