id: ibm-advanced-system-management

info:
  name: IBM Advanced System Management Panel - Detect
  author: dhiyaneshDK,righettod
  severity: info
  description: IBM Advanced System Management panel was detected.
  reference:
    - https://www.ibm.com/docs/en/power8/9080-MME?topic=operations-advanced-system-management
  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
  metadata:
    max-request: 2
    verified: true
    shodan-query: title:"Advanced System Management"
    fofa-query: title="Advanced System Management"
  tags: panel,ibm,login,detect

http:
  - method: GET
    path:
      - '{{BaseURL}}/cgi-bin/cgi?form=1'
      - '{{BaseURL}}/cgi-bin/cgi'

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Advanced System Management'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)Update\s+Access\s+Key\s+Exp\s+Date\s+\(YYYY-MM-DD\):\s+([0-9\-]+)'
# digest: 490a0046304402203cf0da6685cecae513b4764bde7941248a5d3b6fdffd4a9a6057c99f8806831902200ca7f4dc11c2b94a44a2a1b64a21bc4854481d8a44d472db4c7a7227a0234dc3:922c64590222798bb761d5b6d8e72950