id: discourse-installer

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

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: 490a004630440220258dd141bd30687870bf553780d453d71be264213d235e9cb270f5998ededf8f02206ba104ab8b5d3983f90b68f7279f85c2260826c9e795bc92c1488e27456a3b46:922c64590222798bb761d5b6d8e72950