Skip to content

Instantly share code, notes, and snippets.

@watson0x90
Last active June 27, 2024 12:59
Show Gist options
  • Save watson0x90/84d155bb8e883f0f7bb8f98d736a183d to your computer and use it in GitHub Desktop.
Save watson0x90/84d155bb8e883f0f7bb8f98d736a183d to your computer and use it in GitHub Desktop.
Page source includes reference to polyfill[.]io
metadata:
language: v1-beta
name: "Page source includes reference to polyfill[.]io"
description: "Locate polyfill[.]io issues."
author: "@watson0x90"
tags: "cdn", "javascript", "polyfill", "exposure"
given response then
if {latest.response} matches "(https?:\/\/)?([a-z0-9-]+\.)*polyfill\.io(\/.*)?" then
report issue:
severity: high
confidence: tentative
detail: "Locate polyfill[.]io in page source."
remediation: "Update polyfill version to Cloudflare version: For minified: https://cdnjs.cloudflare.com/ajax/libs/polyfill/3.52.1/polyfill.min.js For unminified: https://cdnjs.cloudflare.com/ajax/libs/polyfill/3.52.1/polyfill.js"
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment