id: redash-installer

info:
  name: Redash Installer Exposure
  author: DhiyaneshDk
  severity: high
  description: Redash is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:redash:redash:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: redash
    product: redash
    shodan-query: html:"Redash Initial Setup"
  tags: misconfig,redash,install

http:
  - method: GET
    path:
      - '{{BaseURL}}/setup'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Redash Initial Setup'
          - 'Admin User'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 490a0046304402205450cfe5c751a46b1d398fc2d71380ecd1a1ba87f58f127907abbab104fceffe02203e86373e99ba8f53df3926dbbc3ec7d6e31970ab23ff20a7e23c84563463e042:922c64590222798bb761d5b6d8e72950