id: CVE-2020-26876

info:
  name: WordPress WP Courses Plugin Information Disclosure
  author: dwisiswant0
  severity: high
  description: WordPress WP Courses Plugin < 2.0.29 contains a critical information disclosure which exposes private course videos and materials.
  impact: |
    An attacker can exploit this vulnerability to gain sensitive information about the WordPress WP Courses Plugin.
  remediation: |
    Update to the latest version of the WordPress WP Courses Plugin (1.0.9) to fix the information disclosure vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2020-26876
    - https://www.exploit-db.com/exploits/48910
    - https://www.redtimmy.com/critical-information-disclosure-on-wp-courses-plugin-exposes-private-course-videos-and-materials/
    - https://plugins.trac.wordpress.org/changeset/2388997
    - https://plugins.trac.wordpress.org/changeset/2389243
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2020-26876
    cwe-id: CWE-306
    epss-score: 0.37398
    epss-percentile: 0.97243
    cpe: cpe:2.3:a:wpcoursesplugin:wp-courses:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: wpcoursesplugin
    product: wp-courses
    framework: wordpress
  tags: cve,cve2020,wordpress,wp-plugin,exposure,edb,wpcoursesplugin,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-json/wp/v2/lesson/1"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "application/json"

      - type: regex
        part: body
        regex:
          - "rest_post_invalid_id"
          - "\"(guid|title|content|excerpt)\":{\"rendered\":"
        condition: or

      - type: status
        status:
          - 200
          - 404
        condition: or
# digest: 490a00463044022033638b7ee60e95ced20012442123849b4fd7517c9387f9b104626b907ca3a38a022023491053a8d86fefbf6b54eb6e68eb09194f3f55b35b851c594956d64d973182:922c64590222798bb761d5b6d8e72950