id: combodo-itop-installer

info:
  name: Combodo iTop Installer/Upgrade - Exposure
  author: DhiyaneshDK
  severity: high
  description: Combodo iTop is susceptible to the Installation page exposure due to misconfiguration.
  reference:
    - https://www.itophub.io/wiki/page?id=2_4_0:install:install_wizard
  classification:
    cpe: cpe:2.3:a:combodo:itop:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: combodo
    product: itop
    shodan-query: html:"Installation" html:"itop"
  tags: misconfig,itop,install,exposure

http:
  - method: GET
    path:
      - '{{BaseURL}}/setup/wizard.php'
      - '{{BaseURL}}/itop/setup/wizard.php'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "iTop Installation Wizard"
          - "/setup.js"
        condition: and

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