id: backdrop-cms-detect

info:
  name: Backdrop CMS - Detect
  author: 5tr1x
  severity: info
  description:
    Backdrop CMS was discovered.
  metadata:
    max-request: 1
    verified: true
    shodan-query: html:"Backdrop CMS"
  tags: tech,backdrop,cms,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/core/profiles/testing/testing.info"

    host-redirects: true
    max-redirects: 2

    stop-at-first-match: true

    matchers:
      - type: word
        part: response
        words:
          - "Added by Backdrop CMS packaging script"
          - "X-Generator: Backdrop CMS"
        condition: or

    extractors:
      - type: regex
        part: body
        name: version
        regex:
          - "version = ([0-9.x-]+)"
# digest: 4a0a0047304502207db1807d80e278ebaacda54d26498263d1a1ac3753c3af3afdb0d98333737339022100844a100b17e5e85d0400d3d8ff15f574c1ff860dcbb5854e1f760ed5a3dcf486:922c64590222798bb761d5b6d8e72950