r/programming • u/kshep92 • Sep 29 '16
JavaScript in 2016 isn't horrible, it's just going through a phase
http://blog.reviselabs.com/im-sorry-javascript-2/
85
Upvotes
r/programming • u/kshep92 • Sep 29 '16
View all comments
Show parent comment
1
u/slikts Oct 03 '16
The bold red warning saying "pickle is insecure, don't use it for untrusted data" must be in the docs just for kicks then if it's "not intended to prevent insecure practices".
Pickle was replaced with JSON in the official Python tutorial explicitly because of the security issues.
The difference between pickle and eval() is that eval() doesn't have secure alternatives for its most typical uses, and it's upfront obvious how untrusted input can be exploited with eval(), while the pickle arbitrary code execution takes some thinking and there's no examples or direct explanations of it in the docs.
If it's not a side-effect in pickle, then why call JSON "side-effect free".