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,discovery

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