-
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_youtube_google.yml by @zoomequipd #2291 Source SHA e18e747 Triggered by @zoomequipd
- Loading branch information
Sublime Rule Testing Bot
committed
Jan 9, 2025
1 parent
4e4a776
commit e8605ba
Showing
1 changed file
with
26 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,26 @@ | ||
name: "Open Redirect: YouTube --> Google Redirection Chain" | ||
description: | | ||
Message contains use of a redirect chain which involves YouTube and Google amp. This has been exploited in the wild. | ||
type: "rule" | ||
severity: "medium" | ||
source: | | ||
type.inbound | ||
and any(body.links, | ||
( | ||
.href_url.domain.root_domain == "youtube.com" | ||
and strings.icontains(.href_url.path, 'logout') | ||
// the redirect field | ||
and strings.icontains(.href_url.query_params, "continue=") | ||
and regex.icontains(.href_url.query_params, '&continue=(?:https?)?(?:(?:%3a|\:)?(?:\/|%2f){2})?google\.com[^\&]*\/+amp\/+s\/+') | ||
) | ||
) | ||
attack_types: | ||
- "Credential Phishing" | ||
tactics_and_techniques: | ||
- "Open redirect" | ||
detection_methods: | ||
- "Sender analysis" | ||
- "URL analysis" | ||
id: "67823fac-cb03-5aea-a8ff-782e2e8c42d4" | ||
testing_pr: 2291 | ||
testing_sha: e18e747ec8ead2ac7dde90bf0a77dafb6edb3177 |