Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Web Application Security with Subresource Integ...

Web Application Security with Subresource Integrity

Subresource Integrity (SRI) is an up and coming web security standard from the W3C. SRI enables browsers to verify that files are delivered without unexpected manipulation. This slide deck will go over the history and ways to generate SRI hashes so you can start protecting your end users.

Justin Dorfman

March 16, 2016
Tweet

More Decks by Justin Dorfman

Other Decks in Programming

Transcript

  1. SUBRESOURCE INTEGRITY ENABLES BROWSERS TO VERIFY THAT FILES ARE DELIVERED

    WITHOUT UNEXPECTED MANIPULATION. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  2. function imgflood() { 
 var TARGET = 'victim-website.com'
 var URI

    = '/index.php?'
 var pic = new Image()
 var rand = Math.floor(Math.random() * 1000)
 pic.src = 'http://'+TARGET+URI+rand+'=val'
 }
 setInterval(imgflood, 10) demo JS code via https://blog.cloudflare.com/an-introduction-to-javascript-based-ddos/
  3. function imgflood() { 
 var TARGET = 'victim-website.com'
 var URI

    = '/index.php?'
 var pic = new Image()
 var rand = Math.floor(Math.random() * 1000)
 pic.src = 'http://'+TARGET+URI+rand+'=val'
 }
 setInterval(imgflood, 10) demo JS code via https://blog.cloudflare.com/an-introduction-to-javascript-based-ddos/ bootstrap.min.js
  4. SRI TIMELINE JANUARY 8TH 2014 - DISCUSSION STARTS ON W3C’S

    GITHUB MARCH 18TH 2014 - FIRST PUBLIC WORKING DRAFT ON W3C.ORG
  5. SRI TIMELINE JANUARY 8TH 2014 - DISCUSSION STARTS ON W3C’S

    GITHUB MARCH 18TH 2014 - FIRST PUBLIC WORKING DRAFT ON W3C.ORG OCTOBER 6TH 2015 - FINAL PUBLIC WORKING DRAFT
  6. SRI TIMELINE JANUARY 8TH 2014 - DISCUSSION STARTS ON W3C’S

    GITHUB MARCH 18TH 2014 - FIRST PUBLIC WORKING DRAFT ON W3C.ORG OCTOBER 6TH 2015 - FINAL PUBLIC WORKING DRAFT NOVEMBER 12TH 2015 - W3C CANDIDATE RECOMMENDATION
  7. SRI TIMELINE JANUARY 8TH 2014 - DISCUSSION STARTS ON W3C’S

    GITHUB MARCH 18TH 2014 - FIRST PUBLIC WORKING DRAFT ON W3C.ORG OCTOBER 6TH 2015 - FINAL PUBLIC WORKING DRAFT NOVEMBER 12TH 2015 - W3C CANDIDATE RECOMMENDATION