2013 · 61 citations · 13 references
ComputingComputer ScienceCybersecurityAuthenticationComputer SecurityWeb SecurityAuthorizationContent Security PolicyCross-site ScriptingSame-origin PolicyWeb Application SecurityWeb AuthenticationContent SecurityCross-origin CommunicationCross-site Scripting AttacksHtml5Local StoragePostmessage CommunicationThird-party ExploitationWeb Message Security
The postMessage mechanism in HTML5 enables Web content from different origins to communicate with each other, thus relaxing the same origin policy. It is especially popular in websites that include third-party content. Each message contains accurate information about its origin, but the receiver must check this information before accepting the message. The responsibility for preventing cross-origin attacks is thus partially delegated from the Web browser to the implementors of postMessage receiver functions. We collected postMessage receivers from the Alexa top 10,000 websites and found that many perform origin checks incorrectly or not at all. This results in exploitable vulnerabilities in 84 popular sites, including cross-site scripting and injection of arbitrary content into local storage. We propose two defenses. The first uses pseudo-random tokens to authenticate the source of messages and is intended for the implementors of third-party content. The second, based on a Content Security Policy extension, is intended for website owners. The two defenses are independent and can be deployed jointly or separately. 1
13
An empirical study of privacy-violating information flows in JavaScript web applications
Dongseok Jang, Ranjit Jhala, Sorin Lerner et al. · 2010 · 172 citations
Busting frame busting a study of clickjacking vulnerabilities on popular sites
Gustav Rydstedt, Elie Bursztein, Dan Boneh et al. · 2010 · 113 citations