Low Severity

Attachment: SVG file with Onerror or Onload (Unsolicited)

Labels

No labels.

Description

SVG attachment that contains an onerror or onload attribute permitting the execution of arbitrary JavaScript and removing the need for a <script> element.

@delivr_to
Created Aug 17th, 2023 • Last updated Apr 22nd, 2024
Feed Source
delivr.to Feed
Source
type.inbound
and any(attachments, 
    any(file.explode(.),
        (
          .file_extension == "svg" or 
          .flavors.mime == "image/svg+xml" or 
          any(.flavors.yara, . == "svg_file")
        ) and
        (
            any(.scan.strings.strings,
                strings.icontains(., "onload") or 
                strings.icontains(., "onerror")
            ) or
            any(.scan.yara.matches, 
                .name == "SUSP_SVG_Onload_Onerror_Jul23"
            )
        )
    )
)
and (
  not profile.by_sender_email().solicited
  or sender.email.domain.domain == "delivrto.me"
)
MQL Rule Console
•Docs•Learning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started