{"id":36934,"date":"2022-09-05T15:04:28","date_gmt":"2022-09-05T19:04:28","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=36934"},"modified":"2022-09-05T15:04:28","modified_gmt":"2022-09-05T19:04:28","slug":"web-pages-can-overwrite-your-clipboard","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/09\/05\/web-pages-can-overwrite-your-clipboard\/","title":{"rendered":"Web Pages Can Overwrite Your Clipboard"},"content":{"rendered":"<p><a href=\"https:\/\/lapcatsoftware.com\/articles\/clipboard.html\">Jeff Johnson<\/a>:<\/p>\n<blockquote cite=\"https:\/\/lapcatsoftware.com\/articles\/clipboard.html\"><p>Chrome is currently the worst offender, because the user gesture requirement for writing to the clipboard was accidentally broken in version 104. A public demonstration of the brokenness has been posted on <a href=\"https:\/\/webplatform.news\/\">Web Platform News<\/a>. If you simply visit the demonstration page in Google Chrome or a Chromium browser, then your system clipboard will be overwritten with the text below.<\/p><p>[&#8230;]<\/p><p>If the user gestures were limited to the keyboard shortcut for copy (&#x2318;C on the Mac) or selecting the &ldquo;Copy&rdquo; command in a menu (main or contextual), that might be fine. But the gestures are not strictly limited in this way. In my testing, the following <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/Events\" title=\"Mozilla Developer Network Web Docs\">DOM events<\/a> give a web page permission to use the clipboard API to overwrite your system clipboard[&#8230;] Therefore, a gesture as innocent as clicking on a link or pressing the arrow key to scroll down the page gives the web site permission to overwrite your system clipboard!<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Jeff Johnson: Chrome is currently the worst offender, because the user gesture requirement for writing to the clipboard was accidentally broken in version 104. A public demonstration of the brokenness has been posted on Web Platform News. If you simply visit the demonstration page in Google Chrome or a Chromium browser, then your system clipboard [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-09-05T19:04:30Z","apple_news_api_id":"80ded483-3d30-4047-8904-c29ee5fe29e5","apple_news_api_modified_at":"2022-09-05T19:04:30Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/AgN7Ugz0wQEeJBMKe5f4p5Q","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[279,456,30,2077,1670,103,48,1775,96],"class_list":["post-36934","post","type-post","status-publish","format-standard","hentry","category-technology","tag-firefox","tag-googlechrome","tag-mac","tag-macos-12","tag-pasteboard","tag-safari","tag-security","tag-stop-the-madness","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=36934"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36934\/revisions"}],"predecessor-version":[{"id":36935,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/36934\/revisions\/36935"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=36934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=36934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=36934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}