High Severity
Attachment: HTML Attachment with Javascript location
Description
Recursively scans files and archives to detect HTML smuggling techniques.
References
No references.
type.inbound
and any(attachments,
(
.file_extension in~ ("html", "htm", "shtml", "dhtml")
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
)
and .size <= 5000
and any(file.explode(.),
any(.scan.javascript.identifiers, . == "location")
and length(.scan.javascript.identifiers) < 100
)
)
Playground
Test against your own EMLs or sample data.