id: discourse-installer

info:
  name: Discourse Installer Exposure
  author: DhiyaneshDk
  severity: unknown
  description: Discourse is susceptible to the Installation page exposure due to misconfiguration.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"Discourse Setup"
  tags: misconfig,discourse,install

http:
  - method: GET
    path:
      - '{{BaseURL}}/finish-installation/register'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Discourse Setup'
          - 'Register Admin Account'
        condition: and

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

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