Files
Devv 66de404db6 fix(server): reduce JWT expiry to 72h and use UUIDv4 for attachment IDs
JWT tokens were valid for 30 days, giving stolen tokens a long attack
window. Reduced to 72 hours per security audit LOW-2.

Attachment IDs used UUIDv7 which embeds millisecond timestamps, allowing
attackers to narrow the UUID search space. Switched to UUIDv4 (fully
random) per security audit LOW-3.

LOW-1 (WebSocket CORS wildcard) was already resolved — checkOrigin
validates against an allowlist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 11:03:25 +08:00
..