🔴 [P0] Prevent encryption key exposure via logging #280

Closed
opened 2026-02-03 22:29:49 +00:00 by jason.woltje · 0 comments
Owner

Summary

Encryption key validation errors might log the key through generic error handlers.

Location

apps/api/src/federation/crypto.service.ts:17-30

Security Impact

  • Key exposure leads to ability to decrypt all private keys
  • Complete compromise of federation security

Required Fix

Validate key without exposing it in error messages.

Priority

CRITICAL (P0) - Secrets exposure

## Summary Encryption key validation errors might log the key through generic error handlers. ## Location `apps/api/src/federation/crypto.service.ts:17-30` ## Security Impact - Key exposure leads to ability to decrypt all private keys - Complete compromise of federation security ## Required Fix Validate key without exposing it in error messages. ## Priority **CRITICAL (P0)** - Secrets exposure
jason.woltje added the securityapiapip0 labels 2026-02-03 22:29:49 +00:00
jason.woltje added this to the M7.1-Remediation (0.0.8) milestone 2026-02-03 22:31:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#280