Description
X-SpringBoot through 6.0 returns login verification codes in HTTP responses from unauthenticated endpoints GET /sys/mobile/code and GET /sys/email/code without sending them to account owners. Attackers can request codes using known mobile numbers or email addresses, read them from responses, and authenticate as victims via POST /sys/emailOrMobileLogin/login to hijack accounts.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
yzcheng90 X-SpringBoot
Default version status: unaffected
0 to ≤ 6.0affected
pkg:github/yzcheng90/X-SpringBootReferences
- https://github.com/LinYuanyi1/cve-request-poc/blob/master/x-springboot/02_sms-code-account-takeover.py ↗
- https://github.com/yzcheng90/X-SpringBoot/blob/d74ddba989c0449948ff1ddb0d211b6a7ce81bfa/src/main/java/com/suke/czx/modules/sys/controller/SysLoginController.java#L94-L134 ↗
- https://github.com/yzcheng90/X-SpringBoot ↗
- https://www.vulncheck.com/advisories/x-springboot-through-6.0-authentication-bypass-via-login-code ↗