-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create open_redirect_smartadserver.yml by @zoomequipd #2327 Source SHA 9652197 Triggered by @zoomequipd
- Loading branch information
Sublime Rule Testing Bot
committed
Jan 23, 2025
1 parent
b3ff549
commit 277b063
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: "Open Redirect: smartadserver.com" | ||
description: | | ||
Message contains use of the smartadserver.com redirect. This has been exploited in the wild. | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and any(body.links, | ||
.href_url.domain.root_domain == "smartadserver.com" | ||
and strings.icontains(.href_url.query_params, 'go=') | ||
and not strings.icontains(.href_url.query_params, | ||
'go=https?(?:%3a|:)(?:%2f|\/){2}(?:[^\/]+)?smartadserver.com\/' | ||
) | ||
) | ||
// remove uses that originate from smartadserver.com | ||
and not any(headers.domains, .root_domain == "smartadserver.com") | ||
// negate highly trusted sender domains unless they fail DMARC authentication | ||
and ( | ||
( | ||
sender.email.domain.root_domain in $high_trust_sender_root_domains | ||
and not headers.auth_summary.dmarc.pass | ||
) | ||
or sender.email.domain.root_domain not in $high_trust_sender_root_domains | ||
) | ||
attack_types: | ||
- "Credential Phishing" | ||
- "Malware/Ransomware" | ||
tactics_and_techniques: | ||
- "Open redirect" | ||
detection_methods: | ||
- "Sender analysis" | ||
- "URL analysis" | ||
id: "27e5a585-891d-549d-af34-e2b8dff6d64e" | ||
testing_pr: 2327 | ||
testing_sha: 96521975583335deba00080137e1a05e44262e9f |