id: pagekit-installer

info:
  name: Pagekit Installer Exposure
  author: DhiyaneshDk
  severity: high
  description: Pagekit is susceptible to the Installation page exposure due to misconfiguration.
  reference:
    - https://github.com/pagekit/pagekit
  classification:
    cpe: cpe:2.3:a:pagekit:pagekit:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: pagekit
    product: pagekit
    shodan-query: title:"Pagekit Installer"
  tags: misconfig,pagekit,install,exposure

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Pagekit Installer'
          - 'Connect database'
        condition: and

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

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