id: umbraco-installer

info:
  name: Umbraco Install - Exposure
  author: DhiyaneshDk,stvnhrlnd
  severity: high
  description: Umbraco is susceptible to the Installation page exposure due to misconfiguration.
  classification:
    cpe: cpe:2.3:a:umbraco:umbraco_cms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: umbraco
    product: umbraco_cms
    shodan-query: title:"Install Umbraco"
  tags: misconfig,umbraco,install,oss

http:
  - method: GET
    path:
      - '{{BaseURL}}/install'
      - "{{BaseURL}}/umbraco/management/api/v1/server/status"


    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body, "Install Umbraco", "umbracoInstallPageBody")'
          - 'contains_all(body, "serverStatus", "Install")'
        condition: or

      - type: dsl
        dsl:
          - 'contains_any(header, "text/html", "application/json")'
          - 'status_code == 200 || status_code == 503'
        condition: and
# digest: 490a0046304402205d96f6b4368dffdec89cde647c937a59b7781eb90790b88afe64e0a550e7add302203ad726805784bcd040e24845940140e34f78857c9aae572ee4fdf0d05cac2397:922c64590222798bb761d5b6d8e72950