Skip to content

Switching Protocol Detection

ID: switch-protocol

Severity: info

Author: pdteam

Tags: protocol,switching,tech,websocket,h2c

id: switch-protocol
info:
name: Switching Protocol Detection
author: pdteam
severity: info
metadata:
verified: true
max-request: 1
shodan-query: '"connection: upgrade"'
tags: protocol,switching,tech,websocket,h2c
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: dsl
dsl:
- 'status_code == 101'
- 'contains(to_lower(header), "switching protocols")'
- 'contains(to_lower(header), "connection: upgrade")'
- 'contains(to_lower(header), "upgrade:")'
extractors:
- type: dsl
dsl:
- upgrade
# digest: 4a0a00473045022100cc2321b35fcb8d5374d4b4fb03d559d1690b049ca52df6e0631fe1ed5375353602203fb375c4a40665d2fb846c3f0dfa260d4b2bb5d9709f8df6723197c0b2468d77:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/technologies/switch-protocol.yaml"

View on Github