id: vault-panel

info:
  name: Vault Login Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: Vault login 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:hashicorp:vault:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    product: vault
    shodan-query: http.favicon.hash:-919788577
    vendor: hashicorp
    verified: true
  tags: panel,vault,detect,hashicorp

http:
  - method: GET
    path:
      - "{{BaseURL}}/v1/sys/health"
      - "{{BaseURL}}/ui/vault/auth?with=oidc%2F"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "<title>Vault</title>"
          - "vault/"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: json
        part: body_1
        name: version
        json:
          - ".version"
# digest: 4b0a00483046022100dc8493882fd00bd23e10eebeab7ccd215760a123e44c341205563ccd31a22e830221009dae1e67225444b7d5627577f55631ff83c8b0e2395dd8583112a35f39ed5355:922c64590222798bb761d5b6d8e72950