mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-09-19 09:40:12 +00:00
fix(security): correct stream quota advisory reference
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package controller
|
package controller
|
||||||
|
|
||||||
// TDD regression tests for GHSA-jx78-55p5-rwv5 (CVE-2026-53522):
|
// TDD regression tests for GHSA-jg62-j5h6-8mpq (CVE-2026-53522):
|
||||||
// Unbounded WebSocket Streams — Resource Exhaustion DoS.
|
// Unbounded WebSocket Streams — Resource Exhaustion DoS.
|
||||||
//
|
//
|
||||||
// The vulnerability: POST /api/v1/terminal and POST /api/v1/file insert a new
|
// The vulnerability: POST /api/v1/terminal and POST /api/v1/file insert a new
|
||||||
@@ -51,7 +51,7 @@ func setupQuotaTest(t *testing.T) (cleanup func(), successStream *failingRequest
|
|||||||
|
|
||||||
// TestCreateTerminalEnforcesPerUserStreamQuota verifies that once a user has
|
// TestCreateTerminalEnforcesPerUserStreamQuota verifies that once a user has
|
||||||
// reached the per-user stream cap, subsequent createTerminal calls are rejected
|
// reached the per-user stream cap, subsequent createTerminal calls are rejected
|
||||||
// with ErrTooManyStreamsForUser. This directly tests the GHSA-jx78-55p5-rwv5
|
// with ErrTooManyStreamsForUser. This directly tests the GHSA-jg62-j5h6-8mpq
|
||||||
// fix at the HTTP handler layer.
|
// fix at the HTTP handler layer.
|
||||||
func TestCreateTerminalEnforcesPerUserStreamQuota(t *testing.T) {
|
func TestCreateTerminalEnforcesPerUserStreamQuota(t *testing.T) {
|
||||||
cleanup, _ := setupQuotaTest(t)
|
cleanup, _ := setupQuotaTest(t)
|
||||||
|
|||||||
Reference in New Issue
Block a user