Class 18 CS 480-008 5 April 2016 On the board ------------ 1. Last time 2. Web security [last time] Intro Background, threat model, setting SOP Details Browser windows DOM nodes HTTP cookies HTTP responses Network addresses Pixels on the screen Other complications --------------------------------------------------------------------------- 1. Last time --public key crypto, continued --beginning of Web security 2. Web security A. [last time] Intro B. Background, threat model, setting What is the Web, really? In the old days, it was like in lab1: a simple client/server architecture (client was your web browser, server was a machine on the network that could deliver static text and images to your browser). The web has changed: now the browser is very complicated. --JavaScript: Allows a page to execute client-side code. --DOM model: Provides a JavaScript interface to the page's HTML, allowing the page to add/remove tags, change their styling, etc. --Cookies: storage in browser, used for e.g. user authentication --XMLHttpRequests (AJAX): Asynchronous HTTP requests. --Web sockets: Full-duplex client-server communication over TCP. --Web workers: Multi-threading support. --Multimedia support: