mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix(security): address PR 48 findings with bounded concurrent authentication
Classify IPv6 subnets numerically, reserve login capacity before hashing, bind authentication to credential revisions, revoke other sessions on password rotation, reuse trusted proxy client keys and bound PCM encoding by monotonic time. Credit ph1gros for the findings and proposed regression cases.
This commit is contained in:
1 parent
8bca848c21
commit
275e27c4ac
31 files changed
+449
-84
No files matched your search
@@ -184,5 +184,5 @@ export function useWebClientServerHistory({
|
||||
}
|
||||
|
||||
function serverKey(address: string): string {
|
||||
return address.trim().toLocaleLowerCase();
|
||||
return address.trim().toLowerCase();
|
||||
}
|
||||
@@ -90,12 +90,12 @@ export function mergeQuickServers(
|
||||
}
|
||||
|
||||
function serverKey(address: string): string {
|
||||
return address.trim().toLocaleLowerCase();
|
||||
return address.trim().toLowerCase();
|
||||
}
|
||||
|
||||
function comparableServerKey(address: string): string {
|
||||
const target = splitTeamSpeakTarget(address);
|
||||
const host = target.address.trim().toLocaleLowerCase();
|
||||
const host = target.address.trim().toLowerCase();
|
||||
const port = target.port.trim() || "9987";
|
||||
return host ? `${host}:${port}` : "";
|
||||
}
|
||||
|
||||
@@ -1464,7 +1464,7 @@ const favoriteSwitchLabel = computed(() => quickServers.value.find((server) =>
|
||||
)?.label ?? currentServerTarget());
|
||||
|
||||
function isQuickServerTarget(server: QuickServer): boolean {
|
||||
return server.id === currentServerTarget().toLocaleLowerCase()
|
||||
return server.id === currentServerTarget().toLowerCase()
|
||||
|| quickServerTargetsEqual(server.address, currentServerTarget());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user