[26] ws affected by a DoS when handling a request with many HTTP headers #445
Labels
No labels
blocked
duplicate
enhancement
good first issue
help wanted
invalid
needs criteria
needs estimate
needs testing
question
type
admin
type
bug
type
change
type
defect
type
dependencies
type
documentation
type
epic
type
incident
type
investigation
type
spike
type
story
type
subtask
wontfix
blocked
duplicate
needs criteria
needs designs
needs estimate
needs testing
question
type
admin
type
alert
type
bug
type
defect
type
dependencies
type
design
type
documentation
type
epic
type
incident
type
investigation
type
spike
type
story
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: RabbitLabs/vylbot-app#445
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Package: ws (npm)
Affected versions: >= 8.0.0, < 8.17.1
Patched version: 8.17.1
https://github.com/Vylpes/vylbot-app/security/dependabot/26
Impact
A request with a number of headers exceeding the server.maxHeadersCount threshold could be used to crash a ws server.
Proof of concept
Patches
The vulnerability was fixed in ws@8.17.1 (websockets/ws) and backported to ws@7.5.10 (websockets/ws), ws@6.2.3 (websockets/ws), and ws@5.2.4 (websockets/ws)
Workarounds
In vulnerable versions of ws, the issue can be mitigated in the following ways:
--max-http-size=size
and/or themaxHeaderSize
options so that no more headers than theserver.maxHeadersCount
limit can be sent.server.maxHeadersCount
to0
so that no limit is applied.Credits
The vulnerability was reported by Ryan LaPointe in websockets/ws.
References