Documentation
¶
Overview ¶
Package wscheck implements a real WebSocket handshake to detect Cross-Site WebSocket Hijacking (CSWSH): a server that completes the upgrade handshake for a request bearing a forged cross-origin Origin header is not validating the Origin and may be hijackable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeWSURL ¶
NormalizeWSURL converts an http(s) URL to ws(s) scheme for handshake.
Types ¶
type Result ¶
type Result struct {
URL string
ForgedOrigin string
Accepted bool // server returned 101 Switching Protocols
Detail string
}
Result describes the outcome of a CSWSH probe.
Click to show internal directories.
Click to hide internal directories.