Systems and Internet Infrastructure Security Laboratory (SIIS) Page 1
CSE 543: Safe File Access
Trent Jaeger Systems and Internet Infrastructure Security (SIIS) Lab Computer Science and Engineering Department Pennsylvania State University
CSE 543: Safe File Access Trent Jaeger Systems and Internet - - PowerPoint PPT Presentation
CSE 543: Safe File Access Trent Jaeger Systems and Internet Infrastructure Security (SIIS) Lab Computer Science and Engineering Department Pennsylvania State University Systems and Internet Infrastructure Security Laboratory (SIIS) Page 1
Systems and Internet Infrastructure Security Laboratory (SIIS) Page 1
Trent Jaeger Systems and Internet Infrastructure Security (SIIS) Lab Computer Science and Engineering Department Pennsylvania State University
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
choosing
adversary may want to trick you into using them to implement a malicious operation
2
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
student2/ public_html student1/ public_html
faculty1/
public_html
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
Systems and Internet Infrastructure Security Laboratory (SIIS) Page Systems and Internet Infrastructure Security Laboratory (SIIS) Page
Password File Web Pages Authenticate
Passwd File Web Pages
Authenticate
OK Not OK
Passwd File Web Pages
Serve Webpage
OK Not OK
Serve Webpage
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
Domain Sockets
6
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
Domain Sockets
7
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
8 Systems and Internet Infrastructure Security Laboratory (SIIS) Page
3
Wednesday, April 23, 14
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
GET 1.html
9
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
9 Systems and Internet Infrastructure Security Laboratory (SIIS) Page
3
Wednesday, April 23, 14
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
9
GET ../../ etc/passwd
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
10
mail/root”)
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
11
mail/root”)
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
13
mail/root”)
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
16
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
17
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
20
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
file in the system (no restrictions on targets of symbolic links)
referenced by a link if the path name refers to a link
time of the lstat check and replace with a link before the open
21
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
22
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
resource access checks
23
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
24
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
given you permissions, so that you can use it
25
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
given you permissions, so that you can use it
26
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
40
Code Configuration Access Control Policy
mismatch mismatch
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
41
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
42
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
adversary controlled
to expected attack surfaces (e.g., via lstat of directories, inode recycling prevention, and fstat of source fd)
unauthorized files
building file names or in resolving file names (e.g., fstat of target fd)
43
Systems and Internet Infrastructure Security Laboratory (SIIS) Page
47