Re:Exploiting Misuse of Python's “Pickle”
by sitkack on Sunday June 05, 2016 @10:10PM
(#11844223)
If you want a "secure pickle" you should corrupt it on creation so that it needs a to uncorrupted to be read. preferably with the HMAC.
[ Parent
| on HN ]
Re:Exploiting Misuse of Python's “Pickle”
by ashitlerferad on Monday June 06, 2016 @12:46AM
(#11844719)
No, just switch from pickle to json.
But how would you get arbitrary code execution? Pickle does solve a lot of problems, but it creates so many that I think it should be removed from the battery pack. You can't make HMAC integrity checks optional, and you make the mandatory by breaking the payload.