File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ Code v99.99.999
20
20
21
21
-->
22
22
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
+
23
34
## [ 4.10.0] ( https://github.com/coder/code-server/releases/tag/v4.10.0 ) - 2023-02-15
24
35
25
36
Code v1.75.1
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ describe("health", () => {
21
21
22
22
it ( "/healthz (websocket)" , async ( ) => {
23
23
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" )
26
25
const message = await new Promise ( ( resolve , reject ) => {
27
26
ws . on ( "error" , ( err ) => {
28
27
console . error ( "[healthz]" , err )
@@ -35,6 +34,7 @@ describe("health", () => {
35
34
reject ( error )
36
35
}
37
36
} )
37
+ ws . on ( "open" , ( ) => ws . send ( JSON . stringify ( { event : "health" } ) ) )
38
38
} )
39
39
ws . terminate ( )
40
40
expect ( message ) . toStrictEqual ( { event : "health" , status : "expired" , lastHeartbeat : 0 } )
You can’t perform that action at this time.
0 commit comments