id: terraform-enterprise-panel

info:
  name: Terraform Enterprise Panel - Detect
  author: Adam Crosser,idealphase
  severity: info
  description: Terraform Enterprise panel was detected.
  reference:
    - https://www.terraform.io/enterprise/releases
  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:terraform:*:*:*:*:-:*:*:*
  metadata:
    max-request: 1
    vendor: hashicorp
    product: terraform
    shodan-query:
      - title:"Terraform Enterprise"
      - http.title:"terraform enterprise"
    google-query:
      - intitle:"Terraform Enterprise"
      - intitle:"terraform enterprise"
    fofa-query: title="terraform enterprise"
  tags: panel,terraform,hashicorp,discovery

http:
  - method: GET
    path:
      - '{{BaseURL}}/session'

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        words:
          - "Terraform Enterprise"

    extractors:
      - type: regex
        group: 1
        regex:
          - '<span class="tag is-light is-lowercase">(.+)<\/span>'
# digest: 4a0a00473045022063bd8a39521ccdc4e581c59a5e572b98fc1b7fa0f50d692f35233c63e75ad534022100cfece2baf162a902c8d1907656fe71482d4309e42090462cd8b175fe6bda32f7:922c64590222798bb761d5b6d8e72950