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

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