Open redirect: whitefox.pl

Message contains use of the whitefox.pl open redirect. This has been exploited in the wild.

Sublime rule (View on GitHub)

 1name: "Open redirect: whitefox.pl"
 2description: "Message contains use of the whitefox.pl open redirect. This has been exploited in the wild."
 3type: "rule"
 4severity: "medium"
 5source: |
 6    type.inbound
 7    and any(body.links,
 8            .href_url.domain.domain == "demo.whitefox.pl"
 9            and strings.icontains(.href_url.path, '/Home/SetCulture')
10            and strings.icontains(.href_url.query_params, 'cultureName=')
11            and strings.icontains(.href_url.query_params, 'returnUrl=')
12            and not regex.icontains(.href_url.query_params,
13                                    'returnUrl=(?:https?(?:%3a|:))?(?:%2f|\/){2}[^&]*whitefox\.pl(?:\&|\/|$|%2f)'
14            )
15    )
16    and not sender.email.domain.root_domain == "whitefox.pl"
17    
18    // negate highly trusted sender domains unless they fail DMARC authentication
19    and not (
20      sender.email.domain.root_domain in $high_trust_sender_root_domains
21      and coalesce(headers.auth_summary.dmarc.pass, false)
22    )    
23attack_types:
24  - "Credential Phishing"
25  - "Malware/Ransomware"
26tactics_and_techniques:
27  - "Open redirect"
28detection_methods:
29  - "Sender analysis"
30  - "URL analysis"
31  
32id: "18b74a2a-b832-569f-8f1d-a974863c149a"
to-top