Skip to content

Security: Ozwasyd/FsusBlogV3

Security

SECURITY.md

Security Policy

Role: Security disclosure policy and invariant boundary statement Audience: Security researchers, site operators, and maintainers Authority: Runtime trust boundaries are defined by Production Deployment Guide, Configuration Reference, and Identity and Authentication.

Reporting a Vulnerability

Do not disclose unpatched security vulnerabilities in public issues, pull requests, discussions, or screenshots.

If you discover a security issue in FsusBlogV3 (including authentication or session bypass, cross-role privilege escalation, Passkey/Step-Up replay, CSP/XSS bypass, AEDS v2 or HTTP/2/HTTP/3 parser memory safety or DoS issues, ZK/cryptographic verification flaws, proxy origin spoofing, path traversal, or sandbox escape), submit a confidential report via GitHub Private Vulnerability Reporting (Security -> Advisories -> Report a vulnerability).

Please include:

  1. Affected commit SHA (and build flags / platform: Linux x86_64 or macOS ARM64);
  2. Minimal reproduction steps, active environment variables / reverse-proxy topology, and expected vs. observed behavior;
  3. Impact assessment and suggested remediation (if available).

Supported Scope

  • Supported: The main branch of FsusBlogV3 and subsequent tagged releases.
  • Retired: FsusBlog V1 is archived and unsupported; only offline data import via fsusblog-cli migrate-legacy is maintained in V3.

Core Fail-Closed Security Invariants

Deployments and code changes must preserve the following fail-closed boundaries:

  • Online vs. Offline Privilege Separation: fsusblog-server must run with a DML-only PostgreSQL 18 role and performs read-only schema admission at startup. DDL initialization (plan/apply/verify), secret generation (init-secrets), administrator role grant/revoke/Passkey rotation (admin-identity), daily Merkle checkpoints, and legacy migration occur exclusively in offline fsusblog-cli.
  • Unified Account & Strict Role/Session Enforcement: Readers and administrators share public.blog_user (role IN ('user', 'admin')), public.passkey_credential, and public.user_session with a single HttpOnly; SameSite=Strict session cookie (__Host-FsusSession on HTTPS / loopback proxy; fsus-v2-session on loopback HTTP). Administrator elevation cannot happen over HTTP. Every account generation bump invalidates active sessions immediately.
  • Canonical Single-Origin & Single-Hop Proxy Trust: Lock site origin with FSUSBLOG_PUBLIC_ORIGIN (and set FSUSBLOG_ADMIN_ENABLED=false to disable all admin surfaces fail-closed with 404). When terminating TLS at an edge proxy, enable FSUSBLOG_TRUST_LOOPBACK_PROXY=1 and configure single-hop X-Forwarded-For ($remote_addr) and X-Forwarded-Proto: https; never trust multi-hop client-spoofed headers.
  • Transport & Replay Hardening: Mutations enforce same-origin checks (Origin + Sec-Fetch-Site), RFC 8470 (Early-Data: 1 -> 425 Too Early uniformly across HTTP/1.1, HTTP/2, and HTTP/3), and strict HTTP/2 rapid-reset / control-flood / Slowloris cutoffs.
  • Sensitive Operation & Anti-Abuse Gates: Critical admin mutations require one-time 45-second Passkey Step-Up (X-Fsus-Mfa-Proof, 15 actions across 11 DB tables), X-Fsus-Admin-Permission-Session binding, Scoped PoW, and strict dual-control appeal review (an admin who rejected a comment receives 403 when attempting to decide its appeal). Generate all 32-byte symmetric keys with fsusblog-cli init-secrets and store ECDSA P-256 signing keys as 0600 files (private scalars are never cached in memory).
  • Credential-Free Anonymous Surface: All ZK anonymous comment submission and Ed25519 self-management endpoints fail closed with 400 if any Cookie or Authorization header is present, preventing accidental correlation with signed-in reader sessions.
  • OS & Interpreter Sandboxing: fsusblog-plugin-worker, PDF rendering (data/pdf-render.py), and AOT SSR (FSUSBLOG_AOT_SSR_SCRIPT) run under sys::run_sandboxed_subprocess (sandbox-exec on macOS; rlimit + PR_SET_NO_NEW_PRIVS + optional bwrap --unshare-net on Linux) with strict CPU, memory, output, and timeout caps. Private/public media and appearance roots must be dedicated 0700 directories without symlinks (O_NOFOLLOW).

For deep architectural details, see System Architecture Overview, Identity and Authentication, WAF, Security Challenges, and Audit, and ZK Anonymous Comments.

There aren't any published security advisories