Attack 7: Do Path Kernel Attack
Overview Requirement Preparation Submission Resources
Overview
do_path kernel function resolves a string of absolute path name of a entry passed as an argument to the function. The path is a concatenation of subsequent path components starting from trailing path component. The concatenated path name is stored into a fixed-length buffer of PAGE_SIZE bytes. If a entry points to a path that exceeds PAGE_SIZE - 1 characters length, leading path components are not written to the buffer and function returns truncated path without an error value. Project Requirements
We want to see a working demonstration of your exploitable implementation (note: if all the requirements are not satisfied, grades will be based on what you turn in) (1) Read source code (/smx/src/fs/stadir.c & /smx/src/fs/path.c) and figure out why there is vulnerability in this program and identify the corresponding codes.
Preparing for the project
Download attack7.tar from website and save it in your smx/ directory; Submission & Demonstration
You are expected to submit a hardcopy report of your attack. In your report, you should specify the procedures you implement the attacks, explain why you consider your attack is successful, and what procedure may help to fix the vulnerability. Helpful Documents
Updated: 03/13/2005 |