id: modx-installer

info:
  name: ModX CMS - Unfinished Installation
  author: DhiyaneshDk
  severity: high
  description: |
    Detected accessible ModX CMS installation or setup pages that indicated an incomplete installation.An exposed installation interface allowed attackers to complete the setup process and gain administrative access.
  reference:
    - https://modx.com/
    - https://docs.modx.com/3.x/en/getting-started/installation
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"MODX Revolution"
  tags: modx,install,exposure,misconfig

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

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "ModX Revolution"
          - "installer-steps"
        condition: and
        case-insensitive: true

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