News for hackers. Stuff that matters.
Re:How does Facebook disable Developer Tools? by magicalist on Wednesday February 12, 2014 @12:50AM (#7222755)
I don't think Developer Tools are going to be able to allow overriding like this for long, or we're going to be seeing a lot of this on sites soon, just like the widespread right-click "disabling" of yesteryear.
Re:How does Facebook disable Developer Tools? by brey on Wednesday February 12, 2014 @03:24AM (#7223184)
I don't think it's as simple as that - there's a lot more damage you can do by copy-pasting arbitrary code obtained via a social engineering vector into the dev console, than right-clicking to save an asset.

I'd consider this a genuine security issue, and wouldn't be surprised if the dev console at least got moved behind a lot more 'here be dragons' warnings.

or hide it behind a turing-test-for-engineers ... 'solve the following code test to enable the dev console' ;)

Re:How does Facebook disable Developer Tools? by magicalist on Wednesday February 12, 2014 @04:17AM (#7223326)
Oh, I don't mean for the purposes of security, but sites thinking that they're protecting their content in some way by dropping in a future jquery plugin or whatever that disables the console, and suddenly the hackability and usability of the web becomes much less.

Another place where you see this sort of thing: banks that try to prevent password managers from filling in your credentials (also I've seen a few recently that try to prevent you from pasting in your password).

There is a tradeoff there too: like this Facebook trick helping save some users, bank tricks probably help some users from accidentally saving their bank credentials on some public or shared computer, but it makes it really annoying (or not possible short of opening devtools and setting the input box's value manually) for those of us that want a unique and more-or-less random password for each site we visit.

Re:How does Facebook disable Developer Tools? by hereonbusiness on Thursday February 13, 2014 @07:11AM (#7230861)
If you are using FF or Chrome you can just make your browser run a js script after loading a certain page.

It's neat for small changes as you don't have to write a whole extension just a simple script.

Re:How does Facebook disable Developer Tools? by tokenizerrr on Wednesday February 12, 2014 @07:56AM (#7223978)
Web browsers had had the capability to execute javascript through the URL bar since as long as I can remember. Social engineers should be able to just bypass this by telling users to copy paste the following code, Control+L, type "javascript:" (chrome strips it when copy-pasting), Control+V, Enter.

    javascript:alert('hi ' + document.body.innerHTML);
If people can be tricked into executing code in the dev console, then why not this too?
Re:How does Facebook disable Developer Tools? by dorward on Wednesday February 12, 2014 @08:12AM (#7224027)
Browsers have already started to remove/limit code execution capability from the address bar.

https://bugzilla.mozilla.org/show_bug.cgi?id=656433

https://code.google.com/p/chromium/issues/detail?id=82181

Re:How does Facebook disable Developer Tools? by EGreg on Wednesday February 12, 2014 @01:04PM (#7226039)
Wait does this mean bookmarklets will fail in those browsers from now on?
Re:How does Facebook disable Developer Tools? by shdon on Wednesday February 12, 2014 @01:11PM (#7226090)
My bookmarklets run just fine, JS in the URL-bar doesn't.
Re:How does Facebook disable Developer Tools? by Bwoup on Friday February 14, 2014 @04:36PM (#7241134)
But bookmarklets execute via the URL bar, that's all they are...
Re:How does Facebook disable Developer Tools? by EGreg on Thursday February 13, 2014 @12:41AM (#7229697)
Do the bookmarklets execute in the context of the page?
Re:How does Facebook disable Developer Tools? by shdon on Thursday February 13, 2014 @05:10AM (#7230535)
Yes, they work just as they've always done.
Re:How does Facebook disable Developer Tools? by Ellipsis753 on Wednesday February 12, 2014 @08:16AM (#7224045)
That no longer works in newer Firefox (and I think Chrome?). You can turn that back on in about::settings though.

edit: Ooops, someone had already made a post to this effect. Sorry.

Re:How does Facebook disable Developer Tools? by tokenizerrr on Wednesday February 12, 2014 @11:29AM (#7225213)
I tested it in Chrome before posting. Notably it removes the javascript: from the clipboard, but that's why I said to have the user type that part.
Re:How does Facebook disable Developer Tools? by robocat on Thursday February 13, 2014 @03:22AM (#7230125)
I think (Chrome & Firefox) you can use a content security policy to prevent JavaScript running from the address bar:

http://en.wikipedia.org/wiki/Content_Security_Policy

Re:How does Facebook disable Developer Tools? by Already__Taken on Wednesday February 12, 2014 @04:06AM (#7223279)
Something something security by obscurity something something.
Re:How does Facebook disable Developer Tools? by ZoFreX on Wednesday February 12, 2014 @07:40AM (#7223934)
This isn't anything to do with security by obscurity. This is like putting a cover over the launch missiles button.
Re:How does Facebook disable Developer Tools? by username42 on Wednesday February 12, 2014 @03:52AM (#7223248)
I seems too easy to disable developer tools. What about a fork of chrome that prevent disabling this tools