Skip to content

Security: touchfalls/AuthSecured

Security

SECURITY.md

Security Policy

Threat model and guarantees

AuthSecured is designed around these guarantees:

  1. Password storage: Passwords are hashed with Argon2id and a unique random salt.
  2. Timing protection: Unknown accounts use dummy Argon2id verification. Existing accounts verify the supplied password before exposing lock or temporary-password state.
  3. Thread safety: Password hashing, JDBC, Redis, and webhook work runs outside the Minecraft server thread.
  4. Data leakage protection: Passwords, hashes, session tokens, raw IP addresses, webhook URLs, and bot tokens are excluded from logs and audit records.
  5. IP privacy: Stored IP identifiers use HMAC-SHA256 with a required private AUTHSECURED_IP_SECRET. There is no public fallback secret. Unknown IP addresses never share a synthetic bucket or create IP-bound sessions.
  6. Fail-closed startup: Paper and Fabric keep unauthenticated access blocked if security initialization fails.
  7. Database consistency: Registration uniqueness and failed-login counters are enforced atomically by the database.
  8. Data retention: Expired sessions and old audit records are removed periodically outside the server thread. SQLite foreign keys are enabled for every pooled connection.
  9. Shared rate limits: redis.required: true stops authentication when a required shared Redis backend is unavailable. Optional fallback is reported in /authadmin doctor.

Changing AUTHSECURED_IP_SECRET invalidates IP-bound sessions and rate-limit identities. Keep it private, stable, and available to every server that shares the same account database.

Reporting Security Vulnerabilities

Do not report vulnerabilities in public issues. Submit reports privately to the project maintainer.

There aren't any published security advisories