{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern