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: 4b0a00483046022100e08efa453c667303dfd1cadb42d8655e0604f71e8f7891967bce8188b47e461b022100a645743d89b28261a1524ea595314856b41bb8cb33dc1d7145d8638ce613c163:922c64590222798bb761d5b6d8e72950