T05 · Unauthorized Access and Privilege Escalation
- Location
packages/server/websocket.js:203- Finding
Self-Issued Keys and Deterministic Challenges Allow Attestation Bypass
- Content
View full analysis
ws.close(), 300); return; } // Create proof data for verification const proofData = JSON.stringify({ nonce, answers, publicId, timestamp }); if (!verifySignature(proofData, signature, publicKey)) { const result = { type: 'result', verified: false, message: 'Invalid signature', code: 'INVALID_SIGNATURE', publicId }; if (onFailed) onFailed(result); send(ws, result); setTimeout(() => ws.close(), 300); return; } } // Too slow? if (elapsed > totalTimeMs) { / ...[truncated 3596 chars]- Remediation
View remediation
