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

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