What do you guys think of an HTTP header (under Content security policy) that disables the use of the web console unless overridden? To prevent self-xss.
@FEichinger When you expose something dangerous to users and don't do anything to prevent it, I wouldn't call that a user error. It's like giving a gun to a baby and then calling it a user error if it shoots itself.
And, to be fair, it's not "exposed to the user". The console is intended for developers, not the random idiot on Facebook. So, hide the whole console and everything behind an "I am a developer" setting in the browser, instead.
Also, if I can trick a user into typing random crap into a console, why can't I trick the same idiot into setting the preference to allow console access?
@TerryChia Facebook, for example, is plagued by posts that provide some code to copy paste to the console, saying "this will make your facebook do XYZ"
@TerryChia So Facebook actually tried this out. They gave users a way to disable the console-destroying (when you open the console it shows a big warning and a link, and the console REPL doesn't work)
They only did it in Chrome, where the API vulnerability giving the console disable powaz was there. But it did end up reducing the number of self-xss cases directly
@TerryChia Uh, CSP already does this, partly. Facebook, for example, doesn't allow external scripts. This is done via CSP. YOu cannot inject jQuery other than by direct copy-paste.
@FEichinger Because some sites like Facebook (and apparently Netflix) have issues with people being tricked into pasting code into the console
"Enabling this setting allows you to enter code into the console. Be warned: The console is intended for developers only, so please mind what you enter and make sure you understand what it really does." <-- No need for the site to request that, just put it in the browser and be done with it.
But for a site like FB where there is a specific problem (and self-xss is the same specific problem for all sites that have it, there is not much variation)
That is better than "Be warned: The console is intended for developers only, so please mind what you enter and make sure you understand what it really does."
I'm not saying self-XSS isn't an issue. Stupid users messing up because they have no idea what they're doing causes problems for them, sure. But it's not relevant to the protocol. It's only relevant to the tools the users do this with.
So we're now back to user modes ... build it into browsers, and that's it. Default: user mode. Switch: dev mode (with ample warnings and hard to find for your average Joe)
Seriously, it boils down to this. There is no proof that the solution suggested will improve the situation of stupid people being stupid. Don't piss off the rest of your users who know better.
@ManishEarth Because people cannot be bothered to turn if off. You have no proof that a more specific warning will improve things over there just being a dev mode switch.
But hey, I don't use FF on a daily basis and I can always turn it off if I need to. I'm just saying it doesn't make sense to involve the website at all.
@FEichinger Thank god the projects I work with just use the GH issue tracker.
And now I remember why I don't have a Bugzilla account anymore (well, none I have access to) ... I am so much more inclined to start ranting about stupid decisions ...
I can see the use of CSP to restrict attacks from third-party sources in the transfer, or for users to restrict what they wish to transmit to and from the server. But this is an attack purely between the user and the server - and executed almost solely on the user's end.
@ManishEarth I was asked a question about physics that's pretty basic, but I found it quite difficult to explain in as simple terms as possible, you have 2 minutes?
OK, it goes something like this: if you have a satellite in orbit, and its orbital velocity causes the centrifugal force to be exactly opposite to centripetal force of gravity, why doesn't it simply fly in a straight line away from Earth if it's velocity vector is perpendicular to the focus?
@ManishEarth I think I'll try explaining what's radial motion and why it doesn't cancel out gravitational acceleration any more, if it went in a straight line instead ... hope that's not too difficult :)
And I find it pointless -- fix it somewhere first, and see what happens
There is currently a bug I reported for Chromium and some Google services. Google says it's a browser bug. Chromium says it's a website bug. In the end, the bug hasn't been fixed.
We are deploying multiple copies of the same system (some devices behind a gateway with NAT), and we need to have continued access for some of those devices. Right now our strategy is to have a set of non-standard ports that are configured to route to specific IP addresses behind the NAT. This se...