-
Notifications
You must be signed in to change notification settings - Fork 118
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
[BUG] HTML/JavaScript recursion #2
Comments
I identified cases where this recursion was happening by looking at |
Analyzing a large volume of events, it's apparent the mime type matching for
I see two solutions:
The attached file triggers the javascript variety of this bug. |
Describe the bug
We've identified a bug in the HTML/JavaScript identification and extraction code. It's possible that libmagic will incorrectly identify a file as "text/html" while YARA will correctly identify a file as "javascript_file". When this happens, the ScanHtml scanner is applied to the JavaScript file and enters a recursive file extraction loop until the maximum depth is hit.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
JavaScript should not be tasted as HTML.
Screenshots
N/A
Server and project version
Additional context
N/A
The text was updated successfully, but these errors were encountered: