id: linkerd-service-detect

info:
  name: Linkerd Service detection
  author: dudez
  severity: info
  reference:
    - https://twitter.com/nirvana_msu/status/1084144955034165248
  metadata:
    max-request: 1
  tags: tech,linkerd,service,vuln

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

    headers:
      l5d-dtab: /svc/* => /$/inet/interact.sh/443

    matchers-condition: or
    matchers:
      - type: regex
        regex:
          - '(?mi)^l5d-err:.*$'
          - '(?mi)^l5d-success-class: 0.*$'
          - '(?mi)^Via\s*?:.*?linkerd.*$'
        part: header
        condition: or

      - type: regex
        regex:
          - '(?mi)Exceeded .*? binding timeout while resolving name'
          - '(?mi)exceeded .*? to unspecified while dyn binding'
        part: body
        condition: or
# digest: 4a0a00473045022100f3d1e83de92de7048b99389ee3f9f6b653becb1d0d93e588b4a3505efb25105b0220743d539bc08af571c3761d20eaaa295d1be2fa8291ba071f51712549760b6af7:922c64590222798bb761d5b6d8e72950