id: roadiz-cms-detect

info:
  name: Roadiz CMS - Detect
  author: righettod
  severity: info
  description: |
    Roadiz is a modern CMS based on Symfony components with a focus on handling complex content structures. This template detects Roadiz CMS installations by checking for generator meta tags.
  reference:
    - https://github.com/roadiz/roadiz
    - https://www.roadiz.io/
  metadata:
    verified: true
    max-request: 1
    vendor: roadiz
    product: roadiz
    shodan-query: http.html:"roadiz"
    fofa-query: body="roadiz"
  tags: tech,cms,roadiz,detect

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

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(to_lower(body), "<meta name=\"generator\" content=\"roadiz ")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)roadiz\s*([a-z0-9.\s]+)-'
