id: cmsimple-detect

info:
  name: CMSimple - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detects the presence of CMSimple, a simple content management system that requires no database (flat-file).
  reference:
    - https://www.cmsimple.org/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"CMSimple"
  tags: tech,cmsimple,discovery

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

    matchers-condition: or
    matchers:
      - type: regex
        part: body
        regex:
          - '(?i)content=["'']CMSimple(?:["''\s>])'

      - type: word
        part: body
        words:
          - "cmsimpleLocatorElement"
          - "Welcome_to_CMSimple"
          - "templates/__cmsimple_"
        condition: or

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '(?i)content=["'']CMSimple ([0-9.]+)'
# digest: 4b0a00483046022100b9a3dff83aa403834b9c30c78c319265ec4f8f3e6ceece64bd4ada500affc769022100af9386855c9820680cee8332736d219251a4db6ded9db57676b35ee4cf4973ff:922c64590222798bb761d5b6d8e72950