News for hackers. Stuff that matters.
Re:Tips for a new Django developer by limmeau on Friday January 29, 2010 @04:38AM (#1086133)
It is possible to build a poisonous pickle which, on depickling, calls arbitrary standard library functions, so accepting pickles from untrusted source is a No.

One may think that if only the internal model of the user input is pickled, and the user only gets to update this internal model through web requests in defined ways, thus never getting to upload pickles or construct arbitrary complicated python objects, it should be relatively safe.

However, what remains is that if someone manages to blindly inject SQL, he can inject executable code into your application, instead of just injecting data.

There are no comments on this comment yet.