Open Redirect: api.spently.com
Message contains use of the api.spently.com redirect. This has been exploited in the wild.
Sublime rule (View on GitHub)
1name: "Open Redirect: api.spently.com"
2description: |
3 Message contains use of the api.spently.com redirect. This has been exploited in the wild.
4type: "rule"
5severity: "medium"
6source: |
7 type.inbound
8 // there are less than 10 unique links for api.spently.com within the body.links
9 and length(distinct(filter(body.links, .href_url.domain.domain == "api.spently.com"), .href_url.url)) < 10
10 and any(body.links,
11 .href_url.domain.domain == "api.spently.com"
12 and strings.istarts_with(.href_url.path, '/api/spently/click')
13 and strings.icontains(.href_url.query_params, 'url=')
14 and strings.icontains(.href_url.query_params, 'type=')
15 and not regex.icontains(.href_url.query_params,
16 'url=(?:https?(?:%3a|:))?(?:%2f|\/){2}[^&]*spently\.com(?:\&|\/|$|%2f)'
17 )
18 )
19 and not sender.email.domain.root_domain == "spently.com"
20
21 // negate highly trusted sender domains unless they fail DMARC authentication
22 and (
23 (
24 sender.email.domain.root_domain in $high_trust_sender_root_domains
25 and not headers.auth_summary.dmarc.pass
26 )
27 or sender.email.domain.root_domain not in $high_trust_sender_root_domains
28 )
29attack_types:
30 - "Credential Phishing"
31 - "Malware/Ransomware"
32tactics_and_techniques:
33 - "Open redirect"
34detection_methods:
35 - "Sender analysis"
36 - "URL analysis"
37id: "69740e97-265f-515b-b5ae-80ec234f07ac"