by jwally on 4/23/24, 7:02 PM with 14 comments
by xori on 4/24/24, 2:45 PM
const db = await openDatabase();
const keyPair = await getKeyPair(db);
await crypto.subtle.exportKey("jwk", keyPair.privateKey)
exports the private key if I have a XSS vuln.The recommendation for IP address in the JWT is good, but I don't understand your last recommendation of 1) sending the JWT, 2) additionally sending the base64 JWT in a header 3) sending the signature in the header. The crypto.subtle api only works on https domains so you're not defending against mitm attacks on unsecure networks either. And if we can't trust TLS what can we trust on the web?
by throwaway888abc on 4/23/24, 7:16 PM