2023-04-15 19:00:15 +00:00
|
|
|
id: switch-protocol
|
2023-04-15 11:21:02 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: Switching Protocol Detection
|
|
|
|
author: pdteam
|
|
|
|
severity: info
|
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2023-06-04 08:13:42 +00:00
|
|
|
verified: true
|
2023-04-15 11:21:02 +00:00
|
|
|
shodan-query: '"connection: upgrade"'
|
2023-04-15 19:00:15 +00:00
|
|
|
tags: protocol,switching,tech,websocket,h2c
|
2023-04-15 11:21:02 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-04-15 11:21:02 +00:00
|
|
|
- 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
|