id: mezzanine-cms-detect

info:
  name: Mezzanine CMS - Detect
  author: Chirag Mistry
  severity: info
  description: |
    Detects instances of Mezzanine CMS based on unique fingerprints and identifiers.
  metadata:
    shodan-query:
      - http.component:"Mezzanine"
      - http.component:"mezzanine"
      - cpe:"cpe:2.3:a:mezzanine:mezzanine"
  tags: detect,mezzanine,cms,tech

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

    payloads:
      paths:
        - "/"
        - "/admin/login/"
        - "/admin/dashboard/"
        - "/static/js/mezzanine.js"
        - "/settings.py"
        - "/mezzanine/"

    stop-at-first-match: true
    matchers-condition: or
    matchers:
      - type: word
        words:
          - "powered by Mezzanine"
          - "Welcome to Mezzanine"
          - "Mezzanine version"
        condition: or
        case-insensitive: true

      - type: regex
        regex:
          - "(?i)mezzanine\\s+(v[0-9.]+)"
          - "(?i)<title>Mezzanine CMS"
# digest: 4b0a0048304602210096b846a7876e948acadac74d7a97bce7760eedc37b1face32ddb4ed858a38dbf0221009860f55db5906ae2e670b8990282cc1c7d20fc108a44ecc377487736705ee45f:922c64590222798bb761d5b6d8e72950