id: tls-sni-proxy

info:
  name: TLS SNI Proxy Detection
  author: pdteam
  severity: info
  reference:
    - https://www.invicti.com/blog/web-security/ssrf-vulnerabilities-caused-by-sni-proxy-misconfigurations/
    - https://www.bamsoftware.com/computers/sniproxy/
  metadata:
    max-request: 1
  tags: misconfig,ssrf,oast,tls,sni,proxy

http:
  - raw:
      - |
        @tls-sni: interactsh-url
        GET HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: interactsh_protocol # Confirms the DNS Interaction
        words:
          - "dns"
# digest: 4a0a00473045022100e3935611990dc1e40b77d1861ad3bef80b44b13368806cca60a8f2db75c1eaa902202fe6b7c9701b21c4412dbd4377ab271d36c67c0d78826080c35f5871ea7c395b:922c64590222798bb761d5b6d8e72950