id: microfocus-admin-server

info:
  name: Micro Focus Enterprise Server Admin Panel - Detect
  author: theabhinavgaur,righettod
  severity: info
  description: Micro Focus Enterprise Server Admin panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:microfocus:enterprise_server:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 4
    vendor: microfocus
    product: "enterprise_server"
    shodan-query:
      - "Micro Focus DSD"
      - micro focus dsd
  tags: panel,microfocus,detect,login

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/nps/servlet/portalservice"
      - "{{BaseURL}}/nds"
      - "{{BaseURL}}/_LOGIN_SERVER_"

    stop-at-first-match: true

    redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200 && contains(to_lower(header), "micro focus dsd")'
          - 'status_code == 200 && contains_any(to_lower(body), "micro focus imanager", "micro focus imonitor", "micro focus remote manager", "micro focus open enterprise server")'
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)Micro\s+Focus\s+Open\s+Enterprise\s+Server\s+([A-Z0-9\s]+)'
          - '(?i)Copyright\s+([0-9]+)\s+Micro\s+Focus'
# digest: 4a0a0047304502201c5a6ef056c09ae66faa20aaad125d098f948539651be0482141a51dd24be4760221009293c96a5ea3b9aa6fb7d00a0059cdd0c832a56090907131758e04ecfbe67804:922c64590222798bb761d5b6d8e72950