polyfill.io detection

patch-4
Krzysztof Zając 2024-06-25 15:36:55 +02:00
parent 00404d58f2
commit 9428f72a35
1 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,30 @@
id: polyfill-io-detect
info:
name: Polyfill.io Detection
author: kazet
severity: low
description: The polyfill.io CDN was suspected to serve malware.
reference:
- https://sansec.io/research/polyfill-supply-chain-attack
- https://web.archive.org/web/20240229113710/https://github.com/polyfillpolyfill/polyfill-service/issues/2834
- https://blog.cloudflare.com/polyfill-io-now-available-on-cdnjs-reduce-your-supply-chain-risk
metadata:
verified: true
max-request: 1
tags: cdn,polyfill.io
http:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 1
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "<script[^>]* src=['\"]https?://([a-zA-Z0-9-]*.)?polyfill.io[/'\"]"