id: icinga-installer

info:
  name: Icinga Web 2 Installer Exposure
  author: pussycat0x
  severity: high
  description: |
    Icinga Web 2 installer/setup wizard is publicly accessible. The setup page at /icingaweb2/setup exposes the configuration wizard which guides through full application configuration including database credentials, authentication backends, and admin account creation. While a setup token is required to proceed, the exposure of the installer itself is a serious misconfiguration that signals an incomplete or improperly secured installation.
  reference:
    - https://icinga.com/docs/icinga-web/latest/doc/02-Installation/
  classification:
    cwe-id: CWE-200
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.title:"Icinga Web 2"
    fofa-query: body="Welcome to the configuration of Icinga Web 2"
    product: icinga_web_2
    vendor: icinga
  tags: icinga,exposure,misconfig,installer

http:
  - method: GET
    path:
      - "{{BaseURL}}/icingaweb2/setup"
      - "{{BaseURL}}/setup"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Welcome to the configuration of Icinga Web 2"
          - "Setup Token"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100e012e0a385d9a3ae6cf2c25c5d8defb263570bbbcc2b3c5fdcc344baa43ce140022100ee008efa0437d4d2da4298f460da73f6dfe9d7dd3d19e7350d2f485472e1ef3c:922c64590222798bb761d5b6d8e72950