id: unifi-wizard-install

info:
  name: UniFi Wizard Installer
  author: DhiyaneshDk
  severity: high
  description: UniFi Wizard is susceptible to the Installation page exposure due to misconfiguration.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"UniFi Wizard"
  tags: misconfig,install,unifi,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/manage/wizard/"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "UniFi Wizard"
          - "app-unifi-wizard"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "window.unifiConfig.version = '(.*)'"
# digest: 490a00463044022012aa1ef65ad77a1d60d6101347e3f1ed42da9d340b735dfa9c23378e0c7d4d9e022062797a92a6e161f5224ff0470add444ddeeeb92a959e25853377335b8fa0c5ca:922c64590222798bb761d5b6d8e72950