June 2019
Beginner to intermediate
770 pages
19h 24m
English
Some programmers will object to the use of the eval() function in our preceding blog_decode() function, claiming that it is a pervasive security problem. What's silly is the claim that eval() is a pervasive problem. It's a potential security problem if malicious code is written into the JSON representation of an object by some malicious actor. A local malicious actor has access to the Python source. Why waste their time on subtly tweaking JSON files? Why not just edit the Python source?
As a practical issue, we have to look at the transmission of the JSON documents through the internet; this is an actual security problem. However, even this problem does not indict eval() in general.
Some provisions can be made ...
Read now
Unlock full access