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-06-04 08:13:42 +00:00
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 1
|
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
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a00473045022022bc50161940e9d255698ab1bdc38854821fe1679f32128fed04663b190f9cce02210095d5cb4000ce7944d49d86da3a35ce7e393db22f0cadc57f22230f5ab14dec70:922c64590222798bb761d5b6d8e72950
|