Coder denial of service in Web Push response handling
coder
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
| coder coder |
|
|
Original description
Coder 2.21.0 before 2.29.24, 2.30.0 before 2.34.16, 2.35.0 before 2.36.11, 2.37.0 before 2.37.8, and 2.38.0 before 2.38.4 reads Web Push endpoint responses in webpushSend with io.ReadAll, without a size limit or client timeout. Any authenticated user can register a subscription via POST /api/v2/users/{user}/webpush/subscription pointing to a server returning an endless body, exhausting coderd memory and crashing the API, dashboard, and workspace connections.
From the CVE record · VulnCheck