29
Securing the Web Platform Collin Jackson [email protected]

Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. [email protected]. The Web Application Platform More powerful

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Securing the Web Platform

Collin [email protected]

Page 2: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

The Web Application Platform More powerful than

ever• Faster• Easier• Ubiquitous• Interoperable

Safer?

Page 3: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful
Page 4: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Browserscope Security Tests

Both opt-in and on-by-default improvements Applicable and adoptable by all vendors

Collaborators: Lindsey Simon (Google), Steve Souders (Google), Mustafa Acer (CMU), David Huang (CMU)

Page 5: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Research Collaborations

Page 6: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Block Reflected XSSCollaborators: Adam Barth (UC Berkeley), Dan Bates (UC Berkeley)

Page 7: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Cross-Site Scripting

Unfiltered user input appears in output• JavaScript code can hijack

session• #1 most common web

vulnerability

Browser identifies common strings in the request and response

Does not address persistent XSS

Goal: Mitigate vulnerabilities, not attacks

Collaborators: Adam Barth (UC Berkeley), Dan Bates (UC Berkeley)

Page 8: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Limitations of Regular Expressions

Correct parsing requires browser simulation

Script is now easy to find

Page 9: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

XSS Filter Architectures

Google Chrome

Internet Explorer

Page 10: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Clickjacking

Page 11: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Induced False Positives

<script>if ( top != self ) {

top.location = document.location;}</script>

Attack:

http://victim.com/?<script>if (top != self) { …

Page 12: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

X-Frame-OptionsCollaborators: Adam Barth (UC Berkeley), Dan Bates (UC Berkeley)

Page 13: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Full Page Hyperlink Attack

http://www.victim.com/?<a href="…" style="…">

http://www.victim.com/?<script>/*attack*/<script>

Page 14: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Gadget Containers

Page 15: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Container Escape Attack

Page 16: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful
Page 17: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Origin Header CSRF DefenseCollaborators: Adam Barth (UC Berkeley), John C. Mitchell (Stanford), Ian Hickson (Google)

Page 18: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Cookies as Session Identifiers

Page 19: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Cross-Site Request Forgery

User credentials

Cookie: SessionID=523FA4cd2E

Page 20: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Existing Defenses Secret Validation Token

Referer Validation

Custom HTTP Header

<input type=hidden value=23a3af01b>

Referer: http://www.facebook.com/home.php

X-Requested-By: XMLHttpRequest

Page 21: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Referer Suppression

Introduced by network proxies

Strict Referer validation not feasible for most sites

Lenient Referer validation (allowing blank Referer) is insecure

Page 22: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Measurement Technique283,945 impressions = $150

Ongoing work to measureother browser behaviors

• Private browsing usage• Browser patch deployment• DNS rebinding vulnerabilities

Page 23: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Origin Header

Never send privacy-sensitive path and query information

Always set to "null" when suppressed

Page 24: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful
Page 25: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Strict Transport SecurityCollaborators: Adam Barth (UC Berkeley), Jeff Hodges (PayPal), Sid Stamm (Mozilla)

Page 26: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Strict Transport Security

• HTTPS is rarely used securely

• SSL stripping• Mixed content• Certificate error override

• Help browsers identify high-security servers

• Reduces burden on user• Extensible• Backwards compatible

Collaborators: Adam Barth (UC Berkeley), Jeff Hodges (PayPal), Sid Stamm (Mozilla)

Page 27: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Ongoing Work

Different issuing practices Weak crypto Unenforced revocation SSL rebinding

Collaborators: Dinesh Israni (CMU)

Page 28: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful
Page 29: Securing the Web Platform - CyLab Security & Privacy Institute · Securing the Web Platform. Collin Jackson. collin.jackson@sv.cmu.edu. The Web Application Platform More powerful

Thanks!

[email protected]