{"id":19978,"date":"2022-08-30T16:10:03","date_gmt":"2022-08-31T00:10:03","guid":{"rendered":"http:\/\/www.palada.net\/index.php\/2022\/08\/30\/news-13711\/"},"modified":"2022-08-30T16:10:03","modified_gmt":"2022-08-31T00:10:03","slug":"news-13711","status":"publish","type":"post","link":"http:\/\/www.palada.net\/index.php\/2022\/08\/30\/news-13711\/","title":{"rendered":"Chromium browsers can write to the system clipboard without your permission"},"content":{"rendered":"<p>If you are a user of Google Chrome or any other Chromium-based web browser, then websites may push anything they want to the operating system&#8217;s clipboard without your permission or any user interaction. This means that by simply visiting a website, the data on your clipboard may be overwritten without your consent or knowledge.<\/p>\n<h2>Clipboard<\/h2>\n<p>In layman&rsquo;s terms, the clipboard is where the data lives while you copy and paste, or cut and paste for that matter. Copying and pasting is such an essential part of our daily computing that most of us just do it automatically. And it can lead to undesirable results if something outside of our control decides to interfere. For example, if you used the &ldquo;cut&rdquo; action on a certain piece of text with the intention to paste it somewhere else, it can be a nasty surprise if something&nbsp;completely different gets pasted, and due to using the cut rather than copy, you may have lost the original.<\/p>\n<h2>Gestures<\/h2>\n<p>Firefox and Safari do require a user gesture before websites&nbsp;can copy content to the device&#8217;s clipboard. User gesture in this context means that the user is selecting content on the site and using <strong>Ctrl+C<\/strong> or other means to copy it to the clipboard. Chrome and other Chromium-based browsers currently have no such restriction.<\/p>\n<h2>Demonstration<\/h2>\n<p>If you&rsquo;d like to see this demonstrated or if you want to check if you are somehow protected against this happening, you can visit the <a href=\"https:\/\/webplatform.news\/\" target=\"_blank\">Webplatform News<\/a> website to test your browser. All it takes is to visit the site and check the content of the clipboard afterwards. You can check the content by &ldquo;pasting&rdquo; to an empty text editor like Notepad. Should you get the following message in your clipboard, the browser is vulnerable to unauthorized clipboard manipulation:<\/p>\n<blockquote><p>&ldquo;Hello, this message is in your clipboard because you visited the website Web Platform News in a browser that allows websites to write to the clipboard without the user&rsquo;s permission. Sorry for the inconvenience. For more information about this issue, see https:\/\/github.com\/w3c\/clipboard-apis\/issues\/182.&rdquo;<\/p><\/blockquote>\n<h2>Windows clipboard manager<\/h2>\n<p>For Windows 10 and 11 users there is a way to retrieve overwritten items from your clipboard. These Windows versions come with a clipboard manager, although it does need to be turned on first. This can be done&nbsp;in the&nbsp;<strong>Settings <\/strong>menu on your computer. Under <strong>System<\/strong>, you&rsquo;ll find a section called <strong>Clipboard<\/strong>. Toggle the switch to <strong>On<\/strong> behind&nbsp;<strong>Clipboard history<\/strong>. Windows will now start keeping track of your clipboard content. To review the history up to 25 items you can use the <strong>Win+V<\/strong> keys.<\/p>\n<h2>Not new<\/h2>\n<p>At Malwarebytes Labs we wrote about <a href=\"https:\/\/www.malwarebytes.com\/blog\/news\/2016\/05\/clipboard-poisoning-attacks-on-the-mac\">clipboard poisoning attacks on the Mac<\/a> back in 2016. The take-away from that article in the current context is that by pasting in a sensitive place, like the Terminal on a Mac, or a Command Prompt on a Windows machine, text can become a command that gets executed.<\/p>\n<h2>Broken<\/h2>\n<p>In his <a href=\"https:\/\/lapcatsoftware.com\/articles\/clipboard.html\" target=\"_blank\">article about the clipboard issue<\/a>, developer <a href=\"https:\/\/twitter.com\/lapcatsoftware\" target=\"_blank\">Jeff Johnson<\/a> states that the user gesture requirement for writing to the clipboard was accidentally broken in version 104.&nbsp;And although the vulnerability has been flagged, fixing it may be delayed because it <a href=\"https:\/\/bugs.chromium.org\/p\/chromium\/issues\/detail?id=1334203\" target=\"_blank\">breaks other functionality<\/a>. Apparently, adding user gesture requirement for readText and writeText APIs breaks NTP doodle sharing. NTP <a href=\"https:\/\/www.google.com\/doodles\/\" target=\"_blank\">Google doodles<\/a> are animations that appear in some cases in Chrome when a new tab is opened. Personally, I wouldn&#8217;t miss them at all.<\/p>\n<h2>Mitigation<\/h2>\n<p>While we wait for a fix, threat actors may come up with ways to abuse this temporary vulnerability. Here are some things you can do to stay on the safe side:<\/p>\n<ul>\n<li>Do not open webpages between any cut\/copy and paste actions.<\/li>\n<li>Check the content of your clipboard before you past into any sensitive areas. You can use any clipboard manager or just paste into a text field to see what is momentarily there. For those of you doing financial transactions this is always worth considering, since there is <a href=\"https:\/\/www.malwarebytes.com\/blog\/detections\/trojan-clipper\">malware<\/a> out there that can change bitcoin addresses and bank account numbers on your clipboard.<\/li>\n<\/ul>\n<p>Stay safe, everyone!<\/p>\n<p><a href=\"https:\/\/www.malwarebytes.com\/blog\/news\/2022\/08\/chromium-browsers-can-write-to-the-system-clipboard\" target=\"bwo\" >https:\/\/blog.malwarebytes.com\/feed\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<table cellpadding='10'>\n<tr>\n<td valign='top' align='left'>\n<p>Categories: <a href='https:\/\/www.malwarebytes.com\/blog\/category\/exploits-and-vulnerabilities' rel='category tag'>Exploits and vulnerabilities<\/a><\/p>\n<p>Categories: <a href='https:\/\/www.malwarebytes.com\/blog\/category\/news' rel='category tag'>News<\/a><\/p>\n<p>Tags: Chrome<\/p>\n<p>Tags:  Chromium<\/p>\n<p>Tags:  clipboard<\/p>\n<p>Tags:  Jeff Johnson<\/p>\n<p>Tags:  clipboard manager<\/p>\n<p>Tags:  Google doodles<\/p>\n<p>Chromium browsers can write to the system clipboard without user consent or knowledge<\/p>\n<table width='100%'>\n<tr>\n<td align=right>\n<p><b>(<a href='https:\/\/www.malwarebytes.com\/blog\/news\/2022\/08\/chromium-browsers-can-write-to-the-system-clipboard' title='Chromium browsers can write to the system clipboard without your permission'>Read more&#8230;<\/a>)<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<\/td>\n<\/tr>\n<\/table>\n<p>The post <a rel='nofollow' href='https:\/\/www.malwarebytes.com\/blog\/news\/2022\/08\/chromium-browsers-can-write-to-the-system-clipboard'>Chromium browsers can write to the system clipboard without your permission<\/a> appeared first on <a rel='nofollow' href='https:\/\/www.malwarebytes.com'>Malwarebytes Labs<\/a>.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[10488,10378],"tags":[10699,22753,27401,27403,22783,27404,27402,32],"class_list":["post-19978","post","type-post","status-publish","format-standard","hentry","category-malwarebytes","category-security","tag-chrome","tag-chromium","tag-clipboard","tag-clipboard-manager","tag-exploits-and-vulnerabilities","tag-google-doodles","tag-jeff-johnson","tag-news"],"_links":{"self":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/19978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/comments?post=19978"}],"version-history":[{"count":0,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/posts\/19978\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/media?parent=19978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/categories?post=19978"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.palada.net\/index.php\/wp-json\/wp\/v2\/tags?post=19978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}