Re:Dear Flask, Please Fix Your “Secure” Cookies
by NelsonMinar on Friday August 10, 2012 @09:57PM
(#4369138)
No Python program should ever try to unpickle data from an untrusted source.
[ Parent
| on HN ]
Re:Dear Flask, Please Fix Your “Secure” Cookies
by alxv on Friday August 10, 2012 @11:48PM
(#4369364)
There is a way to harden pickle to protect it against the most basic exploits: http://docs.python.org/py3k/library/pickle.html#restricting-...
It is not a complete solution, as an attacker could still DoS your service by making pickle allocate a huge amount of memory, but at least that's better than allowing arbitrary code execution.