Commit 0f39af8
fix: Prevent session hijacking via rejoinCode validation
Only accept UUID format rejoinCodes (containing dashes).
This blocks attackers from using MongoDB accountIds as rejoinCodes
to hijack logged-in users' disconnected sessions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 076f9ee commit 0f39af8
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments