-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
PIL.UnidentifiedImageError (Empty image file) #412
Comments
0xdade
added
bug
Something isn't working
server
affecting natlas-server
agent
affecting natlas-agent
labels
Aug 6, 2020
Sentry issue: NATLAS-SERVER-13 |
0xdade
referenced
this issue
in 0xdade/natlas
Aug 13, 2020
This closes #412 by implementing agent side image validation before including the image in the scan results. The server also makes use of a similar function to validate that an image is valid before saving it.
0xdade
referenced
this issue
in 0xdade/natlas
Aug 13, 2020
This closes #412 by implementing agent side image validation before including the image in the scan results. The server also makes use of a similar function to validate that an image is valid before saving it.
0xdade
referenced
this issue
in 0xdade/natlas
Aug 13, 2020
This closes #412 by implementing agent side image validation before including the image in the scan results. The server also makes use of a similar function to validate that an image is valid before saving it.
0xdade
referenced
this issue
in 0xdade/natlas
Aug 13, 2020
This closes #412 by implementing agent side image validation before including the image in the scan results. The server also makes use of a similar function to validate that an image is valid before saving it.
0xdade
added a commit
that referenced
this issue
Aug 15, 2020
* Fix: Image verification on agent and server This closes #412 by implementing agent side image validation before including the image in the scan results. The server also makes use of a similar function to validate that an image is valid before saving it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
943b660
Describe the bug
There appears to be a scenario where the agent will take screenshots and pass along an empty file to the server. The server does a base64 decode and saves the results to a file and then tries to create a thumbnail based on the now-saved file. PIL reads an empty file and says "woah buddy this doesn't look like an image to me" and natlas throws an exception and doesn't save the document as a result.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
If a file is empty, the agent shouldn't count it as a valid screenshot. If a file is empty, the server shouldn't count it as a valid screenshot, and it shouldn't attempt to do image manipulation on it.
Screenshots / Logs
The text was updated successfully, but these errors were encountered: