{"id":216,"date":"2016-11-23T17:46:31","date_gmt":"2016-11-23T17:46:31","guid":{"rendered":"https:\/\/blog.mozilla.org\/webrtc\/?p=216"},"modified":"2019-06-05T16:32:11","modified_gmt":"2019-06-05T16:32:11","slug":"share-browser-windows-entire-screen-sites-trust","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/","title":{"rendered":"Share browser windows and entire screen only with sites you trust."},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignright wp-image-240\" src=\"http:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png\" width=\"426\" height=\"321\" srcset=\"https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png 1218w, https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5-250x188.png 250w, https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5-768x578.png 768w, https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5-700x527.png 700w, https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5-120x90.png 120w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><strong>Screen-sharing<\/strong> is a powerful new web feature that lets you share what&#8217;s on your computer screen with a web site. This can be extremely useful. Imagine co-browsing with a friend, or having a service technician remotely diagnose a problem on your computer. But at the same time, it carries significant security and privacy risks.<\/p>\n<p>Certain windows are riskier to share than others. Firefox will warn you <strong>not to share browser windows, or even your entire screen when a browser window is present on it, unless you trust the web site<\/strong>. The reasons for this are technical, but boil down to this:<!--more--><\/p>\n<p>When sharing a regular window, a web site may passively record what you&#8217;re doing, which is bad enough: It can catch glimpses of things you didn&#8217;t intend to share, say if you scroll quickly through a document.<\/p>\n<p>But web sites can make browser windows dance, popping up private information from other web sites you never intended to share. It can do this quickly and without your involvement. This becomes an active threat when you share your screen with a malicious site that is visible on that same screen. That site may now effectively browse as you, using any logged in credentials you may have in place, to target and steal your private data.<\/p>\n<p>Now that we have your attention, we can explain the extent of this risk, and how it came to be.<\/p>\n<h3>Sharing a browser window does an end-run around the same-origin policy.<\/h3>\n<p>Web sites have always been able to make your web browser dance with content from lots of different places. Ads work this way in fact. But web sites normally can&#8217;t see the results of such cross-origin output themselves. That is: They can&#8217;t read back and interpret the pixels from other sites. These pixels were shown only on your screen, and that makes it safe. The technical term for this is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Same-origin_policy\">same-origin policy<\/a>. It&#8217;s an important web security mechanism that exists in all browsers.<\/p>\n<p>However, once you share a browser window with a site, you&#8217;re effectively giving that site a mirror. That site may now potentially see the results of other sites it summons, things it shouldn&#8217;t see. You no longer have that important web security mechanism in place.<\/p>\n<div class=\"getty embed image\" style=\"background-color: #fff; display: inline-block; font-family: Roboto,sans-serif; color: #a7a7a7; font-size: 11px; width: 100%; max-width: 507px;\">\n<div style=\"padding: 0; margin: 0; text-align: left;\"><a style=\"color: #a7a7a7; text-decoration: none; font-weight: normal !important; border: none; display: inline-block;\" href=\"http:\/\/www.gettyimages.com\/detail\/116781831\" target=\"_blank\" rel=\"noopener noreferrer\">Embed from Getty Images<\/a><\/div>\n<div style=\"overflow: hidden; position: relative; height: 0; padding: 66.66667% 0 0 0; width: 100%;\"><iframe loading=\"lazy\" style=\"display: inline-block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0;\" src=\"\/\/embed.gettyimages.com\/embed\/116781831?et=HDVYNuBTTkRAItJptk-OXw&amp;tld=com&amp;sig=R1uOTgQOmY-F2RHs-4Oe5zsuHsM23jsFdp_k6DmslY8=&amp;caption=true&amp;ver=1\" width=\"507\" height=\"338\" frameborder=\"0\" scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>For example, take a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Same-origin_policy#Security_Applications\">user who doesn&#8217;t log out of their banking site<\/a> before closing the tab. Say the user shares their screen with a malicious web site shortly after. That site could now launch deep-link account information <a href=\"https:\/\/www.google.com\/search?q=url\">URL<\/a>s to popular banks in an iframe. Because the user is technically still logged into their bank, the malicious site may succeed in displaying personal account information. The site would need to flash this output on the screen only for a split second to capture it. A clever site may even wait to do so until the user is not looking or steps away (by checking for inactivity, or looking at the web camera, if shared).<\/p>\n<p>You run these risks only when a browser window is being shared, or when you share your whole screen with a browser window on it, so, again, only share these two things with sites you trust. Safe browsing!<\/p>\n","protected":false},"excerpt":{"rendered":"Screen-sharing is a powerful new web feature that lets you share what&#8217;s on your computer screen with a web site. This can be extremely useful. Imagine co-browsing with a friend, or having a service technician remotely diagnose a problem on your computer. But at the same time, it carries significant security and privacy risks. Certain [&hellip;]","protected":false},"author":1399,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"coauthors":[301098],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Share browser windows and entire screen only with sites you trust. - Advancing WebRTC<\/title>\n<meta name=\"description\" content=\"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Share browser windows and entire screen only with sites you trust. - Advancing WebRTC\" \/>\n<meta property=\"og:description\" content=\"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/\" \/>\n<meta property=\"og:site_name\" content=\"Advancing WebRTC\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-23T17:46:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-05T16:32:11+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png\" \/>\n<meta name=\"author\" content=\"Jan-Ivar Bruaroey\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jan-Ivar Bruaroey\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/\",\"url\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/\",\"name\":\"Share browser windows and entire screen only with sites you trust. - Advancing WebRTC\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png\",\"datePublished\":\"2016-11-23T17:46:31+00:00\",\"dateModified\":\"2019-06-05T16:32:11+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/f2eb9712b8d85b70aebe1faf24e731fd\"},\"description\":\"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage\",\"url\":\"https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png\",\"contentUrl\":\"https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png\",\"width\":1218,\"height\":917},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/webrtc\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Share browser windows and entire screen only with sites you trust.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/webrtc\/\",\"name\":\"Advancing WebRTC\",\"description\":\"Committed to moving Firefox and WebRTC forward\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/webrtc\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/f2eb9712b8d85b70aebe1faf24e731fd\",\"name\":\"Jan-Ivar Bruaroey\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/image\/5f3d49a61b032619d0d33c4cc7c7433f\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/16d7e05dc9f8a855a02e0796b00aad3f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/16d7e05dc9f8a855a02e0796b00aad3f?s=96&d=mm&r=g\",\"caption\":\"Jan-Ivar Bruaroey\"},\"url\":\"https:\/\/blog.mozilla.org\/webrtc\/author\/jbruaroeymozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Share browser windows and entire screen only with sites you trust. - Advancing WebRTC","description":"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/","og_locale":"en_US","og_type":"article","og_title":"Share browser windows and entire screen only with sites you trust. - Advancing WebRTC","og_description":"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.","og_url":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/","og_site_name":"Advancing WebRTC","article_published_time":"2016-11-23T17:46:31+00:00","article_modified_time":"2019-06-05T16:32:11+00:00","og_image":[{"url":"http:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png"}],"author":"Jan-Ivar Bruaroey","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jan-Ivar Bruaroey","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/","url":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/","name":"Share browser windows and entire screen only with sites you trust. - Advancing WebRTC","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/webrtc\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage"},"image":{"@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage"},"thumbnailUrl":"http:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png","datePublished":"2016-11-23T17:46:31+00:00","dateModified":"2019-06-05T16:32:11+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/f2eb9712b8d85b70aebe1faf24e731fd"},"description":"Screen-sharing is a powerful new web feature that can be extremely useful, but carries significant security and privacy risks.","breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#primaryimage","url":"https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png","contentUrl":"https:\/\/blog.mozilla.org\/webrtc\/files\/2016\/11\/Screensharing5.png","width":1218,"height":917},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/webrtc\/share-browser-windows-entire-screen-sites-trust\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/webrtc\/"},{"@type":"ListItem","position":2,"name":"Share browser windows and entire screen only with sites you trust."}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/webrtc\/#website","url":"https:\/\/blog.mozilla.org\/webrtc\/","name":"Advancing WebRTC","description":"Committed to moving Firefox and WebRTC forward","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/webrtc\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/f2eb9712b8d85b70aebe1faf24e731fd","name":"Jan-Ivar Bruaroey","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/webrtc\/#\/schema\/person\/image\/5f3d49a61b032619d0d33c4cc7c7433f","url":"https:\/\/secure.gravatar.com\/avatar\/16d7e05dc9f8a855a02e0796b00aad3f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16d7e05dc9f8a855a02e0796b00aad3f?s=96&d=mm&r=g","caption":"Jan-Ivar Bruaroey"},"url":"https:\/\/blog.mozilla.org\/webrtc\/author\/jbruaroeymozilla-com\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/posts\/216"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/users\/1399"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/tags?post=216"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webrtc\/wp-json\/wp\/v2\/coauthors?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}