id: hp-ilo-serial-key-disclosure

info:
  name: HP iLO Serial Key - Detect
  author: dhiyaneshDk
  severity: medium
  description: HP iLO serial key was detected.
  reference:
    - https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/hp-ilo-serial-key-disclosure.json
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-200
  metadata:
    max-request: 1
  tags: exposure,config

http:
  - method: GET
    path:
      - "{{BaseURL}}/xmldata?item=CpqKey"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "LTYPE"
          - "LNAME"
          - "KEY"
        part: body
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100db674695dd49906a130a551fd03ff0f51fa45bbfbe2fad4a91c43cd3c3919a66022100cecb4d909700de62e9798f4ac50737ac31fe13c0ffb502ab34cd9914e392b9c2:922c64590222798bb761d5b6d8e72950