Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We had a program that was sending a pickled session state as a cookie. We solved that by packing the cookie as a random string, a timestamp, the object, and a MAC. We validated the MAC, then checked the timestamp, and finally unpickle the object. It still bothers me that we are unpickling data passed by the client but I ran arguments against doing it.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: