H3-2026-1130¶
Chaitin SafeLine Unauthenticated Admin Two-Factor Authentication Secret Disclosure
| Category | CREDENTIALS |
| Base Score | 9.8 |
Description¶
In the default community edition deployment of SafeLine, the MGT_BOOTSTRAP_TOKEN environment variable is left empty, and the checkBootstrapToken function returns success whenever the expected token value is itself empty. The /api/OTPUrl handler relies on this check before returning TOTP provisioning data for the admin account. Remote attackers can request GET /api/OTPUrl without supplying any credential and receive a JSON response containing the admin account's TOTP secret inside an otpauth:// URL. Exploitation requires reaching a freshly installed or default configured SafeLine management console before an operator has set MGT_BOOTSTRAP_TOKEN.
Impact¶
Attackers who obtain the admin TOTP secret can generate valid time based one time codes for the administrator account. This enables binding an attacker controlled authenticator app and completing full administrative login to the SafeLine console. A compromised SafeLine console grants control over web application firewall rules protecting other services. Organizations that have not configured MGT_BOOTSTRAP_TOKEN after installation face immediate admin takeover risk.