id: netflix-conductor-version

info:
  name: Netflix Conductor Version Detection
  author: c-sh0
  severity: info
  description: Obtain netflix conductor version information
  reference:
    - https://github.com/Netflix/conductor/blob/v1.6.0-rc1/ui/src/server.js#L17
    - https://github.com/Netflix/conductor/blob/v3.1.0/rest/src/main/java/com/netflix/conductor/rest/controllers/AdminResource.java#L42
  classification:
    cpe: cpe:2.3:a:netflix:conductor:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: netflix
    product: conductor
    shodan-query: http.title:"Conductor UI", http.title:"Workflow UI"
  tags: miscellaneous,tech,netflix,conductor,api,misc,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/admin/config"
      - "{{BaseURL}}/api/sys"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: header
        words:
          - 'application/json'

      - type: word
        part: body
        words:
          - 'CONDUCTOR_'
        case-insensitive: true

    extractors:
      - type: regex
        group: 1
        regex:
          - 'conductor\-server\-([0-9.]+)\-'
          - '"version":"([0-9.]+)\-'
# digest: 4b0a00483046022100dd14155315f8d748401aaf5e0b1080050ba7745d0a1664b162a0536983a5881e02210093e0c84355a610fae64ce49f17f46f36293ea7fb64b08687bafddcb1a8cabf12:922c64590222798bb761d5b6d8e72950