Tag: chrome

Don’t Trust Copy & Paste – even with JavaScript disabled

I’ve seen a few articles recently advising readers to not blindly copy/paste code from a website into your CLI directly because, with a small bit of JavaScript, you can overwrite the clipboard.

This is something that has been known about for a while and for some reason has seemingly resurfaced recently. The advice is to always paste into a text editor first to ensure what you think you have copied is actually what you have copied. However, I have seen comments about how you should disable JavaScript unless you need it in order to prevent this from occurring.

As awkward as this “disabling JavaScript” advice is on the modern web (and it does require some technical knowledge to enable just what you need) I agree, and in fact disable JavaScript by default. However, for this particular issue, this doesn’t matter. You can achieve essentially the same thing without any JavaScript.

The stuff below isn’t new. In fact, in the linked article is a link to a reddit thread where someone outlines this exact problem. But I feel that it can’t hurt to reiterate. And explore!

So, for the obligatory warning: Don’t paste anything on this page into a Powershell window. Don’t paste it into anything but a text editor. The examples below shouldn’t be harmful but… look, just don’t risk it, okay?

Oh, and disable JavaScript if you want.

Malicious String – copy and paste the below example into a text editor (NOT a Powershell window)

echo ‘hello,
copy c:\inetpub\www\config.php c:\inetpub\www\config.php.txt -whatif
clear
echo ‘hello world!’

Let’s explore how we got here and what we can do about it.

(more…)

Videos not loading in Google Drive

TL;DR: Check that Third Party Cookies are enabled in Chrome and/or G Suite Device Management user settings.

We use Google Drive a lot at work. We are also beginning to use video as a method of training or recording information that you would typically write down. We do still write this stuff down, but sometimes a video is easier to create and consume alongside a document.

We’ve had an issue recently where, seemingly randomly, some people wouldn’t be able to play any videos through Google Drive. They’d open the video and the youtube video player would load, but the video itself wouldn’t start.

Right clicking and downloading the video worked, but that’s not really a suitable workaround to the issue.

We weren’t really able to find anything online about this issue either, but we did find out what caused it so if someone else searches, here’s what we did to resolve the issue.

(more…)