Summary
HotGo's SMS login flow can allow an unauthenticated caller to choose the verification code used for sign-in. If an attacker knows a user's mobile number and can reach the relevant endpoints, they may set a known code and use it to take over that user's account, potentially including an administrator account.
HotGo's SMS login flow can allow an unauthenticated caller to choose the verification code used for sign-in. If an attacker knows a user's mobile number and can reach the relevant endpoints, they may set a known code and use it to take over that user's account, potentially including an administrator account.
Affected context
The issue affects HotGo versions 2.8.4 through 2.15.1 in the SMS login flow. The /admin/sms/send endpoint accepts a caller-supplied Code value, which can then be used during login through /admin/site/mobileLogin. Risk depends on endpoint exposure and the ability to identify a target user's mobile number.
The issue affects HotGo versions 2.8.4 through 2.15.1 in the SMS login flow. The /admin/sms/send endpoint accepts a caller-supplied Code value, which can then be used during login through /admin/site/mobileLogin. Risk depends on endpoint exposure and the ability to identify a target user's mobile number.
Exploit preconditions
- Attack surface: The SMS code-sending and mobile-login endpoints
- Required access: No authentication is required according to the vulnerability description; the attacker needs to know a user's mobile number
- Trigger point: A caller-supplied code is accepted by
/admin/sms/sendand used in a login attempt at/admin/site/mobileLogin - Why exploitation is possible: The login flow allows an unauthenticated party to influence the verification secret instead of ensuring it is securely generated and controlled by the application
- Attack surface: The SMS code-sending and mobile-login endpoints
- Required access: No authentication is required according to the vulnerability description; the attacker needs to know a user's mobile number
- Trigger point: A caller-supplied code is accepted by
/admin/sms/sendand used in a login attempt at/admin/site/mobileLogin - Why exploitation is possible: The login flow allows an unauthenticated party to influence the verification secret instead of ensuring it is securely generated and controlled by the application
Why this happens
The authentication flow does not adequately protect the integrity and generation of its SMS verification code. Allowing an unauthenticated caller to supply that code undermines the verification factor and can let the caller satisfy the login check with a value they know. This is an authentication failure mapped to CWE-287: Improper Authentication.
The authentication flow does not adequately protect the integrity and generation of its SMS verification code. Allowing an unauthenticated caller to supply that code undermines the verification factor and can let the caller satisfy the login check with a value they know. This is an authentication failure mapped to CWE-287: Improper Authentication.
Potential impact
- Attackers may sign in as users whose mobile numbers they know
- User accounts may be taken over
- Administrative accounts may be compromised, potentially enabling broader application changes
- Sensitive account data or administrative functions may be exposed
- Attackers may sign in as users whose mobile numbers they know
- User accounts may be taken over
- Administrative accounts may be compromised, potentially enabling broader application changes
- Sensitive account data or administrative functions may be exposed
General mitigation guidance
Mitigation generally focuses on ensuring verification codes are generated and controlled exclusively by the authentication service.
Common defensive patterns include:
- Ignore or reject caller-supplied values for authentication secrets
- Generate unpredictable, short-lived codes on the server and bind them to the intended user and login session
- Enforce attempt limits, expiration, and single-use verification
- Apply least privilege to accounts and administrative functions
- Reduce exposure of authentication endpoints and protect them with appropriate monitoring and abuse controls
Mitigation generally focuses on ensuring verification codes are generated and controlled exclusively by the authentication service.
Common defensive patterns include:
- Ignore or reject caller-supplied values for authentication secrets
- Generate unpredictable, short-lived codes on the server and bind them to the intended user and login session
- Enforce attempt limits, expiration, and single-use verification
- Apply least privilege to accounts and administrative functions
- Reduce exposure of authentication endpoints and protect them with appropriate monitoring and abuse controls
How teams detect issues like this
Review authentication handlers for code paths that accept client-provided verification codes or treat them as trusted secrets. Static analysis and code review can identify mismatches between code generation, delivery, storage, and verification.
Monitor for unusual requests to SMS and mobile-login endpoints, repeated verification attempts, and successful logins that lack expected code-delivery events. Policy checks can require server-side generation and validation of authentication tokens.
Review authentication handlers for code paths that accept client-provided verification codes or treat them as trusted secrets. Static analysis and code review can identify mismatches between code generation, delivery, storage, and verification.
Monitor for unusual requests to SMS and mobile-login endpoints, repeated verification attempts, and successful logins that lack expected code-delivery events. Policy checks can require server-side generation and validation of authentication tokens.

