Pickle
Exploitation
The example below is a vulnerable pickle code that can be exploited.
If an attacker is able to create a python object with a shellcode in it's __reduce__ function, pickle will execute the shellcode.
This vulnerability is present in the pickle.loads() function.
The following code is an exploit example to the pickle vulnerability.
Fix
Unfortunately there is no remediation to this issue other than only use trusted data inputs.
Last updated