/

CVE-2026-120447

Severity:

HIGH RISK

(8.1)

Authentication Bypass (CWE-287) in HotGo SMS Login

CVE-2026-120447

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287

Impact:

Account Takeover

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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/send and 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/send and 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.

Sources

SourceLink
github.comgithub.com/bufanyun/hotgo/blob/269b2f9e435cf8ff6b18d53bc053a905f4e02d11/server/internal/logic/sys/sms_log.go
github.comgithub.com/bufanyun/hotgo/blob/269b2f9e435cf8ff6b18d53bc053a905f4e02d11/server/internal/model/input/sysin/sms_log.go
github.comgithub.com/bufanyun/hotgo/commit/cb57056c746650e6ff86dec1e97d404b63dcfd30
github.comgithub.com/bufanyun/hotgo/issues/240
vul.yulun.ac.cnvul.yulun.ac.cn/20261102/hotgo/
vulncheck.comvulncheck.com/advisories/hotgo-through-2.15.1-authentication-bypass-via-client-set-sms-verification-code

Frequently asked

questions

The described endpoints are part of the application's request surface, and the vulnerability is described as unauthenticated. Exploitability depends on whether those endpoints are reachable and on knowing a target user's mobile number.

No authenticated access is described as necessary. The attacker does need a target mobile number to attempt account takeover.

Generate verification codes on the server, bind them to the intended account and login flow, and reject client-supplied codes as authentication proof.

Treat verification codes as secrets, enforce expiration and single use, limit attempts, and test that authentication decisions depend only on server-controlled verification state.

The described endpoints are part of the application's request surface, and the vulnerability is described as unauthenticated. Exploitability depends on whether those endpoints are reachable and on knowing a target user's mobile number.

No authenticated access is described as necessary. The attacker does need a target mobile number to attempt account takeover.

Generate verification codes on the server, bind them to the intended account and login flow, and reject client-supplied codes as authentication proof.

Treat verification codes as secrets, enforce expiration and single use, limit attempts, and test that authentication decisions depend only on server-controlled verification state.

Find out what's already
exploitable in your codebase.