security - Firefox Scratchpad ' s javascript code has more privileges than a standar website javascript code? -


i've copy paste , run through scratchpad code form source code of website.

want know if code has more privileges when runs through scratchpad of firefox or has same privileges when runs directly through webpage.

before pasting on scratchpad firefox alerts message:

scam warning: take care when pasting things don't understand.
allow attackers steal identity or take control of computer.


know there javascript exploits run through website but..

the message firefox seems like:

"the javascript on scratchpad has more privileges javascript of webpage , attackers can steal without exploits, standar code"


is true?

the same code can act differently website , differently scratchpad in terms of security?

or it's including inside html, safety measures has javascript inside website?

why firefox alert on scratchpad done anyway visiting malicious webpage (potential javascript attack) ?

by default, code running in scratchpad can javascript on web site you're looking @ can do, no more , no less. means can access data site, , possibly send somewhere else without telling you, or can take actions pretending on site. message you're seeing warning unwary users not coders, keep them pasting malicious code might of things scratchpad because told them to, because won't able tell code malicious. if go facebook , @ browser console, you'll see similar warning explaining same thing, because common type of social engineering attack.

now, said "by default" earlier, let me explain meant. it's possible change scratchpad "content" mode "browser" mode. that, have enable option in developer tools settings (it's called "enable browser chrome , add-on debugging toolboxes"), , switch scratchpad browser mode using environment menu. if things, scratchpad can the browser itself, not particular web site, can do. scratchpad running in mode have more permissions web page does; can native application could. content mode default mode, , has same permission set web pages do.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -