Skip to content

v2.1.2

Choose a tag to compare

@github-actions github-actions released this 30 Nov 05:48
· 62 commits to main since this release

Security Fixes

  • Authentication Bypass via Default JWT Secret (GHSA-q6j5-hrp4-vx99): Fixed a critical vulnerability where scrmux shipped with a static default jwt_secret (change_before_use), allowing unauthenticated attackers to forge admin JWTs offline.
    • Automatically generate a cryptographically random 32-byte base64-encoded jwt_secret when initializing a new config.yml on first startup.
    • Enforce startup validation to refuse launching if jwt_secret is empty or still set to change_before_use.
    • Changed the default fallback ip_listen in LoadConfig to 127.0.0.1 and restricted config.yml file permissions to 0600.
    • Removed plaintext configuration dumping from startup logs to prevent credential exposure.

Security Advisory: GHSA-q6j5-hrp4-vx99
Credits: Reported by Akshat Joshi

Upgrade Notes (Action Required for Existing Installations)

If you are upgrading an existing installation where data/config.yml still has jwt_secret: change_before_use (or an empty value), scrmux will now refuse to start until you update jwt_secret to a strong random string (for example, generated via openssl rand -base64 32) or delete config.yml to let the server regenerate a fresh configuration.

You might also change/add these options in data/config.yml:

  • domain: A string value. To be included in the TLS cert.
  • ip_listen: A string value. The server will listen on this IP address. Default to 127.0.0.1.
  • port_listen: A int value. The server will listen on this port. Default to 8081.
  • tls: A boolean value. Whether to enable embedded TLS.
  • jwt_secret: A string value.
  • trusted_ips: A list of strings. Access from these IPs can have PIN unlock.
  • pin: A string value. Must be 6 digits.