id: domibus-detect

info:
  name: Domibus - Detect
  author: righettod
  severity: info
  description: |
    Domibus was detected.
  reference:
    - https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Domibus
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Domibus"
  tags: tech,domibus,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}/domibus/rest/application/info"
      - "{{BaseURL}}/domibus/"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>domibus", "domibus-msh")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"versionNumber":\s*"([0-9.]+)"'
# digest: 4a0a0047304502205fb2f91106242b8d294321900b687987c783219b79cfe97c7f36c3c0e4b1e96f022100fac530f4091763de657a1e76d88ba1b3ebd6a8c3912596d04107c9c01dfc8b4d:922c64590222798bb761d5b6d8e72950