-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Close vunerabilities with pickle #35
Comments
I'm open to hearing suggestions about this as well. It's my understanding that the vulnerability lies with untrusted data as stated in the pickle documentation:
But I also understand the argument that It's really something for the user to be aware of (don't download random files off the internet) rather than something for us to handle. But if there is something we can do about it while still making that part of the code functional, I'm open to suggestions. |
Oy-vey, what an unfortunate turn of events. I'll look into this problem on weekend and into the second one too, with the zip issue. |
Here is a suggestion for how to replace pickle. We can achieve similar logic using JSON instead. Something like this:
And similar logic for decoding. I haven't tested it yet, but doing it this way allows us to make small modifications and keep most of the existing logic in place. @dobrosketchkun What do you think? |
It looks like a nice idea! |
@AlfredoSequeida Are you sure that the bytes object won't be compressed by YouTube? |
Well, since pickle object is also just bytes and it works, so, I don't think it'll be an issue. |
@Theelgirl I think the result should be the same since the |
I just finished replacing the logic for pickle using json. I will be pushing that soon. As a plus side, I had an mp3 file that was not working when we were using pickle and for some reason using the json implementation fixed that. I wonder if pickle was changing the data somehow. |
closed with 363a9c1 |
@dobrosketchkun If you have time, do you have any ideas for how to fix the issues shown in #34? I'm not that good with pickle or such.
The text was updated successfully, but these errors were encountered: