Skip to content
SEUNGWOO CHOI edited this page Oct 23, 2026 · 8 revisions

Security model

English · 한국어

Security boundaries for the Miroven client. Report vulnerabilities through the repository's private reporting instructions.

Boundaries

  • Web Crypto encrypts entries/photos before IndexedDB storage and remote transfer. Only the recovery-code-wrapped vault key envelope goes to the server.
  • HttpOnly sessions and Origin/CSRF checks protect API requests. Production HTTPS requires Secure cookies; local development HTTP is an exception.
  • The server determines ownership from the session and rejects mismatched account hints. Client API/account binding prevents silently uploading an existing vault to another account.
  • CSP connect-src allows self and the configured API origin. The build uses an HTML parser to hash browser-normalized inline script/style text, excluding inert template content. When needed to fit hosting header limits, attribute-free classic HTML scripts are extracted using parser source locations. nginx applies generated headers to responses.
  • The Service Worker caches only public shell/static resources, not sessions, API responses, or files.
  • Snapshots are committed atomically after all pages validate. Failure preserves entries and the Outbox.
  • Account deletion requires a fresh email code, CSRF, and current-account checks, and immediately revokes all sessions on acceptance. Invalid codes do not delete local entries or revoke sessions.
  • The deletion receipt is scoped to the API URL in the tab's sessionStorage. It is sent only in a bearer header, grants no login/sync access, and is excluded from URLs, diagnostics, and SW caches.
  • Deletion clears only the current local vault bound to that API/account; unrelated or unbound local vaults remain. Same-origin tabs are notified to clear in-memory views.

Limitations and validation boundaries

E2EE does not protect against a modified client, XSS, or access to an unlocked device. The server sees email addresses, access/change times, ciphertext sizes, and operational metadata. A PIN is a convenience lock and cannot provide strong offline protection for copied browser storage. Back up encrypted files and keep the recovery code separately; browser storage is not permanent storage.

Local-server installation and paired backup/restore have been exercised. Public domains, external SMTP, actual S3 providers, independent security audit, and physical iOS/Android behavior have not been established by those checks. API browser integration uses Chromium; WebKit checks cover local photo processing and client workflows. Do not infer a certification or public-service readiness from local tests.

See cryptographic format, account and sync, backup and recovery, and image processing.

Clone this wiki locally