60 likes | 296 Views
The Postman Always Rings Twice: Attacking and Defending postMessage in HTML5Websites. Sooel Son and Vitaly Shmatikov The University of Texas at Austin 20 th NDSS Symposium (February 2013). Introduction. Web browsers isolate content by on its origin . same origin policy
E N D
The Postman Always Rings Twice:Attacking and Defending postMessage in HTML5Websites Sooel Son and VitalyShmatikov The University of Texas at Austin 20th NDSS Symposium (February 2013)
Introduction • Web browsers isolate content by on its origin. • same origin policy • Popular sites often include third-party content. • advertisements • buttons for social recommendations • … • They need to communicate with each other. A Seminar at Advanced Defense Lab
HTML5 • HTML5 includes the postMessage facility that enables a script to send a message to a window regardless of their respective origins. [link] A Seminar at Advanced Defense Lab
postMessage • Sender (may be invoked by third-party script) • window.postMessage(message, targetOrigin [, transfer ]) • Browser use targetOrigin to verify window A Seminar at Advanced Defense Lab
Message Event • The event listener may be registered by third-party script • Some message event object members • data • origin • The sender’s origin • source • It represents the WindowProxy of the browsing context of the Window object from which the message came A Seminar at Advanced Defense Lab
Two Problems about postMessage • Senders need to specify targetOrigin • Barth et al. USENIX Security 2008 • Recievers need to verify event.origin • This paper A Seminar at Advanced Defense Lab