Skip to content

Commit 9aaf749

Browse files
committed
Update changelog with origin check
1 parent 1c98a40 commit 9aaf749

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ Code v99.99.999
2020
2121
-->
2222

23+
## Unreleased
24+
25+
Code v1.75.1
26+
27+
### Security
28+
29+
Add an origin check to web sockets to prevent a cross-site hijacking attack that
30+
affects those who use older or niche browsers that do not support SameSite
31+
cookies and those who access code-server under a shared domain with other users
32+
on separate sub-domains.
33+
2334
## [4.10.0](https://github.com/coder/code-server/releases/tag/v4.10.0) - 2023-02-15
2435

2536
Code v1.75.1

test/unit/node/routes/health.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ describe("health", () => {
2121

2222
it("/healthz (websocket)", async () => {
2323
codeServer = await integration.setup(["--auth=none"], "")
24-
const ws = await codeServer.ws("/healthz")
25-
ws.send(JSON.stringify({ event: "health" }))
24+
const ws = codeServer.ws("/healthz")
2625
const message = await new Promise((resolve, reject) => {
2726
ws.on("error", (err) => {
2827
console.error("[healthz]", err)
@@ -35,6 +34,7 @@ describe("health", () => {
3534
reject(error)
3635
}
3736
})
37+
ws.on("open", () => ws.send(JSON.stringify({ event: "health" })))
3838
})
3939
ws.terminate()
4040
expect(message).toStrictEqual({ event: "health", status: "expired", lastHeartbeat: 0 })

0 commit comments

Comments
 (0)