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
file extension checks needed for polyglot files #9
Comments
Good point, thank for the hint. I will look for a somehow generic way to match the mimetypes with the extensions. We will have a problem with some specific types that have many different extensions for the same mime type. |
I will implement the fix with the information provided here: |
The new version of the code PyCIRCLean (standalone Python code) fixed this security bug: So this code will limit the issue of the polygot files. Tests and feedback more than welcome. |
This bug is now completely fixed by this commit: CIRCL/PyCIRCLean@420e87c |
and this one that removed the buggy code: def6c26 |
Circlean bypass for zipfiles:
Works for PDF, too:
You might want to start whitelisting file extensions and checking that file extension and detected MIME type match.
The text was updated successfully, but these errors were encountered: