Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a bcheck for detecting malicious Polyfill CDN #211

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions other/Javascript/malicious_polyfill_cdn.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
metadata:
language: v2-beta
name: "Malicious Polyfill CDN In Use"
description: "Look in responses to see if there are malicious Polyfill CDNs is in use"
author: "KnugiHK"
tags: "passive","javascript"

given response then
if {latest.response} matches "<script.*?src=\"(https?:)?//(cdn.)?polyfill.io/v[0-9]/polyfill\.min\.js.*?\".*?>" then
report issue:
severity: high
confidence: firm
detail: "The malicious Polyfill CDN polyfill.io is used on the website."
remediation: "Self-host a Polyfill service or use a more reliable CDN."
end if
Loading