id: concrete5-installer

info:
  name: Concrete5 - Installer Page Exposure
  author: osamahamad,princechaddha
  severity: high
  description: |
    Detects exposed Concrete5 Installation page.
  reference:
    - https://documentation.concretecms.org/developers/introduction/installing-concrete-cms
  classification:
    cpe: cpe:2.3:a:concrete5:concrete5:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: concrete5
    product: concrete5
    shodan-query:
      - http.title:"Install concrete5"
      - cpe:"cpe:2.3:a:concrete5:concrete5"
      - http.title:"install concrete5"
      - http.title:"concrete5"
    fofa-query:
      - title="install concrete5"
      - title="concrete5"
    google-query:
      - intitle:"concrete5"
      - intitle:"install concrete5"
  tags: misconfig,install,exposure,concrete5,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php/install"
      - "{{BaseURL}}/concrete5/index.php/install"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Install concrete5</title>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'Version ([0-9.]+)'
# digest: 4a0a00473045022100a3c416db6b6f6def53c11f92ee3a392befc16f31024029d21d82acb4d637676b022035cfed771788d25a3a4e53f0041b2a6ffb3ccafd4f7fd1da90998f920545b53d:922c64590222798bb761d5b6d8e72950