News for hackers. Stuff that matters.
Re:JavaScript is now required to sign in to Google by dijit on Thursday November 01, 2018 @10:02AM (#18353928)
I think this is a really braindead argument. Of course users are going to use javascript more, the more the internet demands it, the more people will be willing to allow it.

When I first started using noscript there were few exceptional sites which didn’t work and I didn’t bother with them after, if that was the majority of sites, I would probably just disable noscript.

The idea that I _have_ to let your site run code on my machine is only laughable when it’s an exception, the problem is the industry. And google is telling the industry that it’s ok.

edit: yes, I understand; I'm over the hill and you all absolutely love shoving javascript down peoples throats, I get it. But please take a moment to consider... not? maybe you have a financial incentive to avoid thinking about the ramifications you inflict on others, maybe you're paid to be a JS dev. But really, if you're making the web worse, I will not cry for being downvoted, just know that I hate you. :)

Re:JavaScript is now required to sign in to Google by sctb on Thursday November 01, 2018 @01:03PM (#18356071)
We detached this subthread from https://news.ycombinator.com/item?id=18353373.
Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:16AM (#18354048)
Sorry, but you're out of touch.

Almost everyone wants the features that JS enables. Literally: Almost everyone. I understand you don't, and I absolutely respect that decision, but it means that you're not worth developing for. Full stop. It's not a matter of mal-intent, it's a matter of financial logistics.

You bought that machine to run code. If you don't want to run code that sites serve you on the internet, don't visit them.

That said, I'd be willing to wager a fair bit that literally every line of code you've run on your machine (probably ever if it's been bought in the last few years) outside of the vendor installed OS and drivers came from the internet.

Re:JavaScript is now required to sign in to Google by nathan_long on Thursday November 01, 2018 @10:37AM (#18354248)
> That said, I'd be willing to wager a fair bit that literally every line of code you've run on your machine (probably ever if it's been bought in the last few years) outside of the vendor installed OS and drivers came from the internet.

We explicitly decide to install software and we know where we're getting it from. We may not be careful enough, but I certainly trust `brew install` a lot more than I trust a random site I happen to visit.

> You bought that machine to run code. If you don't want to run code that sites serve you on the internet, don't visit them.

I bought my car to drive it, but that doesn't mean that every person I pass on the street gets to drive my car.

You seem to think that visiting a web site establishes a trusting relationship with that site. I think that downloading a site's HTML and running its JavaScript are quite different levels of trust. Especially when the content and the code come from very different entities - eg, the journalist writing the article vs the advertising network the publication uses.

Clearly if I'm using Gmail, I'm trusting Gmail and I don't mind running their JavaScript. But the blanket statement that "if you don't want to run code that sites serve you on the internet, don't visit them" seems out of touch with how pervasively nasty the internet is.

Taking a walk on a city sidewalk does not require eating whatever you find there.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:55AM (#18354447)
I think this is a reversal of responsibility. You're shifting the responsibility from yourself to a different entity for the choices you're making.

The single safest thing you can do while using the web is to simply be aware of what you're clicking on, and what sites you visit.

> I bought my car to drive it, but that doesn't mean that every person I pass on the street gets to drive my car.

Damn right you don't let random people drive your car! just like I expect you not to click every link you see!

I'd also love it if you'd install an ad blocker, remove just about every other extension you have in your browser (ABSOLUTELY do this for old firefox extensions and IE BHOs) and trust your browser when it tells you that maybe visiting that particular site isn't the best idea.

That said, modern browsers do a really, really good job at isolating the code running in that page from anything you care about.

Re:JavaScript is now required to sign in to Google by plankers on Thursday November 01, 2018 @11:08AM (#18354606)
Correct me if I'm wrong, but it seems that your personal philosophy places absoluely none of the onus for the internet being dangerous and unfriendly on the people who actually develop things for the internet. You instead blame the layman who has no power to control how websites are constructed.

The heck?

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @12:59PM (#18356024)
I'd disagree entirely. I'd argue that I'm aware of how much effort has gone into making the web much, Much, MUCH more convenient and less risky for the average, day to day user.

It's frankly stunning how much the ecosystem has changed just over the last 5-10 years. And I mean that as a developer who works in the security industry with a focus on browsers/extensions. It's ludicrous how much more secure the web of today is over the web of the past.

That said, it's not yet secure. There's always a risk/reward decision for using the web, especially around HOW you - the user - uses the web.

So to make an analogy: The infrastructure in place between root authorities, the IETF, browser vendors, ISRG (Let's Encrypt is just one), and website developers has done a DAMN good job in making the web less vulnerable than it was.

It's a nicely paved two lane road that goes nearly everywhere.

That said, you are interacting with the entity hosting the site you visit, NOT THOSE GROUPS, when you visit a site.

It's your responsibility to make sure you trust that entity, and do your due diligence.

Just like I wouldn't try to drive my crappy 1998 Mazda Protege offroad - It's dangerous and I would be unprepared.

Its your responsibility to make decisions for yourself (or at least I fucking hope it is... that's a fundamental aspect of a democratic society that I STRONGLY believe in). That means living with the consequences.

It can also mean choosing different service providers that are less convenient if you deem the easy ones too risky. If you're not willing to do that (aka: switch away from gmail if you want js disabled everywhere) and you still want to complain... I find it hard to treat you seriously.

Re:JavaScript is now required to sign in to Google by nathan_long on Thursday November 01, 2018 @03:06PM (#18357320)
> It's your responsibility to make sure you trust that entity, and do your due diligence.

What does this entail? I mean, ask the average person if they trust the New York Times, the London Stock Exchange, or Spotify. Those are well-known names - sure we trust them. We trust that, as an organization, they are not plotting to steal our identities.

But trusting them means trusting their business people, their IT people, and their advertising partners, not only to be moral but also to be competent. And whoops, all of them have served malvertising in the past.

Nobody has the time and expertise to evaluate every site's JavaScript every time they visit. The "due diligence" you describe would be a very specialized full-time job.

Whereas turning off JavaScript in the browser takes about 10 seconds.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @03:38PM (#18357644)
> It's your responsibility to make sure you trust that entity, and do your due diligence.

> What does this entail?

My whole point is that that's up to you to decide. No one else can make that choice for you.

The VAST majority of people have decided that the risks they face today are worth it, and continue to use the web with js enabled.

If you're not one of them, I absolutely respect that decision, but it means you'll have to accept that companies are making financial and security based decisions based on the behaviors of normal people.

That means that when spotify (and lets be honest, every other streaming service) doesn't work without js, you go somewhere else, and use something different.

That's the whole point I'm making. You can make any decision you'd like with regards to your own security, you can make any decision you'd like with regards to the sites you visit. But that site is free to act in it's own interests, including adding features and services that target the majority of their uses.

Re:JavaScript is now required to sign in to Google by Bartweiss on Thursday November 01, 2018 @02:07PM (#18356719)
> You're shifting the responsibility from yourself to a different entity for the choices you're making. The single safest thing you can do while using the web is to simply be aware of what you're clicking on, and what sites you visit.

This seems like a fundamental misrepresentation of how malware is distributed, and how privacy is compromised. People are responsible for the sites they choose to visit. They're not responsible for what those sites serve them, because they can't evaluate it until it's already been served. I don't know what a page will serve me until I visit that page. I can't.

Holding people responsible for whatever content they're served on a page is the same sort of "suck it and see" logic we rightly rejected with "by opening this package, you have consented to the terms of this license". It's a concept that's fundamentally incompatible with informed agreement.

If you want to hold people responsible for clicking "crack DRM now!" ads on the Pirate Bay, fine. But malware doesn't necessarily require outbound clicks, and doesn't necessarily come from dubious sites. Forbes locked out adblockers and served malware through their ad network. Xfinity, the NYT, ebay, Youtube, the Atlantic, and a dozen others major sites have served malware. Newegg, British Airways, and probably Ticketmaster were hit by Magecart, which infected even users with adblockers running.

Why do I disable Javascript? It's not because I don't think I'm responsible for my safety online. Precisely the opposite - it's because I'm not relying on other parties! Magecart was running on major sites two months ago. Adblock, an up-to-date browser, and responsible surfing didn't keep people safe, but uBlock did. A framing where users are accepting any code that ever appears on any site they visit is a framing where we all ought to abandon the internet outright.

Re:JavaScript is now required to sign in to Google by nathan_long on Thursday November 01, 2018 @02:58PM (#18357243)
> Damn right you don't let random people drive your car! just like I expect you not to click every link you see!

The difference is that I can interact with any number of people, yet only trust a few to drive my car.

You seem to suggest that I should trust everyone I interact with to drive my car, and since that's risky, I should limit my interactions to a few people.

> You're shifting the responsibility from yourself to a different entity for the choices you're making.

Not trusting a site's code is taking responsibility for what it might do to me. Trusting their code is giving them the responsibility to do what's right.

> The single safest thing you can do while using the web is to simply be aware of what you're clicking on, and what sites you visit.

This is good, practical advice for non-tech people. But fundamentally there is no reason the web needs to be unsafe. Viewing a series of hypertext documents is safe, no matter who wrote them. The web is totally safe if you browse it using curl. It's only when we assume that "of course you're going to run that stranger's code" that things become dangerous.

It's great that we can have web applications. It's not great if every page is an application. There should be an explicit step from "I'm casually looking at your page" to "now I want to trust you and run your code".

> That said, modern browsers do a really, really good job at isolating the code running in that page from anything you care about.

That code can't wipe my hard drive, but it can track me everywhere if I let it.

The reason we need content security policies and cross-site request forgery tokens and cross-site scripting protection etc, etc is that our browsers are constantly eval'ing whatever code they're given.

Re:JavaScript is now required to sign in to Google by Oishikatta on Thursday November 01, 2018 @12:54PM (#18355962)
> The single safest thing you can do while using the web is to simply be aware of what you're clicking on, and what sites you visit.

This would be accurate, if watering hole attacks[1] weren't a thing.

[1]: https://en.wikipedia.org/wiki/Watering_hole_attack

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @01:08PM (#18356126)
Nope, it's still accurate. There are always risks. This is one (it's not a common one, but it's a risk).

To reframe - my statement is akin to saying: the single safest thing you can do while driving is to pay attention to the road.

And you responding with: "This would be accurate, if trees falling on you weren't a thing."

Sure it's a risk, it's not the primary risk.

Re:JavaScript is now required to sign in to Google by 72deluxe on Thursday November 01, 2018 @11:36AM (#18354936)
Are you aware how many requests pages make simply by visiting them? Hae you ran a DNS server and seen how many third-party sites get hit simply by visiting one news page, for example?

I would rather have more control over what gets scraped from who-knows-where and ran on my machine than not.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @01:01PM (#18356043)
You have that control.

You have not lost that control.

Why does this matter in the context of this discussion?

If you choose to visit that news site, you're trusting their web developers. You can always manually go and setup tools and systems to block those 3rd party requests (like I mentioned earlier, an ad blocker is a great first step, because it's easy and automatic). If you're not willing to take those steps...

Don't use the site.

Re:JavaScript is now required to sign in to Google by dijit on Thursday November 01, 2018 @10:19AM (#18354078)
You're making an assumption about me, I actually don't use noscript these days (I haven't for at least 6 years at this point) however I will fight for the right of my brethren who do not have machines with six CPU cores and 64G of ram, or those who have had their scrollbars hijacked, or their text to speech software go insane, or their web experience which used to be controlled by them insidiously invaded by people who want to use their webbrowser as a software distribution platform and virtual machine.

Javascript being enforced allows for a sub-par slew of web development which does not cater for performance(minor) or accessibility(major).

I dislike the trend of _forcing_ people to do something that doesn't benefit them. Even if I'm not personally affected.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:31AM (#18354190)
I'm sorry, but who is _forcing_ you to do anything?
[dead]
Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:38AM (#18354262)
You're talking about a service that this company provides at no charge. No one is forcing anyone to use these services.

If you don't like that, go somewhere else. No one is holding a gun to your head and going "RUN JS OR I SHOOT!".

Why do you assume that you, and the people you claim to be advocating for, are able to compel this entirely separate entity, making a decision it believes is best for the majority of it's customers, to do something that benefits you - a user of a service provided at no charge, and with absolutely no binding contract?

Re:JavaScript is now required to sign in to Google by Jenz on Thursday November 01, 2018 @10:42AM (#18354303)
Does anyone force you to use Google’s services?
Re:JavaScript is now required to sign in to Google by arcticfox on Thursday November 01, 2018 @10:09AM (#18353985)
> Of course users are going to use javascript more, the more the internet demands it, the more people will be willing to allow it.

I think you have this backwards; the vast majority of users like the benefits of js-enabled sites, so they get built. That ship has sailed long ago.

Re:JavaScript is now required to sign in to Google by dijit on Thursday November 01, 2018 @10:16AM (#18354046)
Even so, making the assertion that:

"javascript adoption in the browser will increase in future, therefore we will enforce javascript"

is like saying:

"more people will have passports in future, therefore we require passports to get a bus pass".

By doing that; you make it true.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:18AM (#18354064)
It's already true. You can quibble over who's fault it was, but it really doesn't matter at this point. The web serves code that users run. That's because the web is the best distribution medium for code we've ever seen.

I bet you've also installed client side applications that came from the web, on a vendor installed OS that came from the web, and drivers for your machine that came from the web.

Re:JavaScript is now required to sign in to Google by dijit on Thursday November 01, 2018 @10:23AM (#18354114)
You're equating my signed/sealed/delivered package management to javascript??

??

??????

Really? You honestly don't see a difference? I have a chain of trust with my OS manufacturer (apple) and a defecto trust with a centralised entity for most of my applications (IE; my company for things that we build, or the home-brew project for most other packages)

I should not have that trust with any idiot who manages to get a signed SSL certificate; IE: the whole internet.

Re:JavaScript is now required to sign in to Google by horsawlarway on Thursday November 01, 2018 @10:32AM (#18354200)
You mean like the signed/sealed/delivered csp policies that browsers have supported for years?

https://developers.google.com/web/fundamentals/security/csp/

To quote the signature section:

'<hash-algorithm>-<base64-value>'

A sha256, sha384 or sha512 hash of scripts or styles. The use of this source consists of two portions separated by a dash: the encryption algorithm used to create the hash and the base64-encoded hash of the script or style. When generating the hash, don't include the <script> or <style> tags and note that capitalization and whitespace matter, including leading or trailing whitespace. See unsafe inline script for an example. In CSP 2.0 this applied only to inline scripts. CSP 3.0 allows it in the case of script-src for external scripts.