id: tableau-server-detect

info:
  name: Detect Tableau Server
  author: TechbrunchFR,aringo
  severity: info
  description: Detects Tableau Server and extracts the buildid
  metadata:
    max-request: 1
  tags: tech,tableau

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: or
    matchers:
      - type: word
        part: header
        words:
          - "X-Tableau: Tableau Server"
          - "Server: Tableau"
        condition: or

      - type: word
        part: body
        words:
          - "VizPortalRun"
          - "vizportal"
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'data-build[iI]d="([0-9a-z_]*)'
# digest: 4a0a0047304502207d9ef8632664603d356ea9ec8ff0a69b58d349f96d3c71bc8f145315fdaa70540221009d9fc9139edd14e43be76e94011ee079cee79774c90a5a661fd5bf3f9d3d660a:922c64590222798bb761d5b6d8e72950