Repository navigation
v2.1.2
Security Fixes
- Authentication Bypass via Default JWT Secret (
GHSA-q6j5-hrp4-vx99): Fixed a critical vulnerability wherescrmuxshipped with a static defaultjwt_secret(change_before_use), allowing unauthenticated attackers to forge admin JWTs offline.- Automatically generate a cryptographically random 32-byte base64-encoded
jwt_secretwhen initializing a newconfig.ymlon first startup. - Enforce startup validation to refuse launching if
jwt_secretis empty or still set tochange_before_use. - Changed the default fallback
ip_listeninLoadConfigto127.0.0.1and restrictedconfig.ymlfile permissions to0600. - Removed plaintext configuration dumping from startup logs to prevent credential exposure.
- Automatically generate a cryptographically random 32-byte base64-encoded
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 to127.0.0.1.port_listen: A int value. The server will listen on this port. Default to8081.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.