In forums, I see more and more questions that use jsfiddle or jsbin to share live examples.
My question: are these links safe? Would it be possible that somebody includes malicious code in a public jsfiddle or jsbin page?
|
In forums, I see more and more questions that use jsfiddle or jsbin to share live examples. My question: are these links safe? Would it be possible that somebody includes malicious code in a public jsfiddle or jsbin page? |
|||||
|
|
Usually the risk is in being redirected to malicious code from server side. I don't think jsfiddle or jsbin have the capacity to harm as they are client side without there being malicious server side code that they are somehow perpetuating. |
|||
|
|
|
It is possible that someone may include code in a jsFiddle that is executed when you click the link. By using commonly known codes for crashing certain browsers they maybe able to crash your browser. Someone could send you into popup hell or down a link path that is hard to escape or lock your browser with processor intensive operations. In general these are very unlikely and will likely not cause an permanent damage to your machine. |
|||
|
|
|
Of course it is as possible to include malicious code there as in every other page. The JS is directly evaluated. Add-ons like NoScript for Firefox can help here where you can for example temporarily enable JS for JSFiddle, permanently for SO and never for XYZ. |
|||||||||||
|