-
CSE543 - Introduction to Computer and Network Security Page
CSE543 - Computer and Network Security Module: Web Security
Professor Trent Jaeger
1
1
CSE543 - Computer and Network Security Module: Web Security - - PowerPoint PPT Presentation
CSE543 - Introduction to Computer and Network Security Page
1
1
CMPSC443 - Introduction to Computer and Network Security Page
2
5 10 15 20 25 2001 2002 2003 2004 2005 2006 Web (XSS) Buffer Overflow
2
CMPSC443 - Introduction to Computer and Network Security Page
3
3-1
CMPSC443 - Introduction to Computer and Network Security Page
3
3-2
CMPSC443 - Introduction to Computer and Network Security Page
3
3-3
CMPSC443 - Introduction to Computer and Network Security Page
3
3-4
CMPSC443 - Introduction to Computer and Network Security Page
4
4
CMPSC443 - Introduction to Computer and Network Security Page
5
http://a.com/<img> http://c.com/ <img> http:// b.com/ <img>
Webpage
http:// d.com/ <IMG> http:// e.com/ <IMG> <body>
5
CMPSC443 - Introduction to Computer and Network Security Page
6
6
CMPSC443 - Introduction to Computer and Network Security Page
7
7
CMPSC443 - Introduction to Computer and Network Security Page
8
8
CMPSC443 - Introduction to Computer and Network Security Page
9
9
CMPSC443 - Introduction to Computer and Network Security Page
10
10-1
CMPSC443 - Introduction to Computer and Network Security Page
10
10-2
CMPSC443 - Introduction to Computer and Network Security Page
11
11
CMPSC443 - Introduction to Computer and Network Security Page
12
12
CMPSC443 - Introduction to Computer and Network Security Page
13
Origin A Data Origin B Data
13
CMPSC443 - Introduction to Computer and Network Security Page
14
14
CMPSC443 - Introduction to Computer and Network Security Page
people to find and exploit SOP browser bugs for cross-domain communication
15
15
CMPSC443 - Introduction to Computer and Network Security Page
16
16
CMPSC443 - Introduction to Computer and Network Security Page
17
17
CMPSC443 - Introduction to Computer and Network Security Page
18
18
CMPSC443 - Introduction to Computer and Network Security Page
19
19
CMPSC443 - Introduction to Computer and Network Security Page
20
Webpage Banner Script Onclick Script Periodic Refresh Script Web-server 1 Web-server 2 Web-server 3
20
CMPSC443 - Introduction to Computer and Network Security Page
21
21
CMPSC443 - Introduction to Computer and Network Security Page
22
22
CMPSC443 - Introduction to Computer and Network Security Page
23
http://www.mybank.com/loggedin?sessionid=11
23
CMPSC443 - Introduction to Computer and Network Security Page
24
http://www.abine.com/
24
CMPSC443 - Introduction to Computer and Network Security Page
25
Protecting Browser State from Web Privacy Attacks : Jackson et al.
25
CMPSC443 - Introduction to Computer and Network Security Page
26
26
CMPSC443 - Introduction to Computer and Network Security Page
27
27
CMPSC443 - Introduction to Computer and Network Security Page
28
28
CMPSC443 - Introduction to Computer and Network Security Page
29
29
CMPSC443 - Introduction to Computer and Network Security Page
30
30
CMPSC443 - Introduction to Computer and Network Security Page
31
Process 1
http://a.com/<img> http://c.com/ <img> http:// b.com/ <img>
TAB 1
http:// d.com/ <IMG> http:// e.com/ <IMG> <body>
Process 2
http://a.com/<img> http://c.com/ <img> http:// b.com/ <img>
TAB 2
http:// d.com/ <IMG> http:// e.com/ <IMG> <body>
Process 3
http://a.com/<img> http://c.com/ <img> http:// b.com/ <img>
TAB 3
http:// d.com/ <IMG> http:// e.com/ <IMG> <body>
Main Browser Process 31
CMPSC443 - Introduction to Computer and Network Security Page
32
32
CMPSC443 - Introduction to Computer and Network Security Page
33
33
CMPSC443 - Introduction to Computer and Network Security Page
34
34
CMPSC443 - Introduction to Computer and Network Security Page
35
35
CMPSC443 - Introduction to Computer and Network Security Page
36
36
CMPSC443 - Introduction to Computer and Network Security Page
37
37
CMPSC443 - Introduction to Computer and Network Security Page
38
38
CMPSC443 - Introduction to Computer and Network Security Page
39
39
CMPSC443 - Introduction to Computer and Network Security Page
40
40
CMPSC443 - Introduction to Computer and Network Security Page
41
41
CMPSC443 - Introduction to Computer and Network Security Page
42
$INPUT = “Alice\;mail($to, $subject, $body);” <FORM METHOD=POST ACTION="../cgi-bin/mycgi.pl"> <INPUT TYPE="hidden" VALUE="~/.profile" NAME="LOGFILE"> </FORM>
42
CMPSC443 - Introduction to Computer and Network Security Page
43
SELECT email, login, last_name FROM user_table WHERE email = 'x'; DROP TABLE members; --';
43
CMPSC443 - Introduction to Computer and Network Security Page
44
$sql = "select * from some_table where some_col = ?"; $sth = $dbh->prepare( $sql ); $sth->execute( $input ); $sql = "select * from some_table where some_col = $input"; $sth = $dbh->prepare( $sql ); $sth->execute;
44
CMPSC443 - Introduction to Computer and Network Security Page
45
45
CMPSC443 - Introduction to Computer and Network Security Page
46
46