Ruoyi Incorrect Access Control Vulnerability in SysUserController

Vulnerability

An access control vulnerability has been identified in Ruoyi version 4.8.0. The issue arises from a missing permission check in the 'authRole' method of 'SysUserController.java', which can lead to unauthorized access to user information, including potentially sensitive details about admin accounts.

Impact

Exploitation of this vulnerability could result in unauthorized access to user data, bypassing intended access controls. This includes access to administrative user information, which could be particularly sensitive.

Reproduction

To reproduce this vulnerability, invoke the 'authRole' method in 'SysUserController.java' without the necessary 'checkUserDataScope' permission check. This can be done by calling 'userService.selectUserById' with a user ID, which will bypass the access control and allow retrieval of user details, including roles, without proper authorization.

Remediation

It is recommended to add the missing 'checkUserDataScope' permission check in the 'authRole' method to ensure proper access control is enforced.

Added: Nov 26, 2025, 5:24 PM
Updated: Nov 26, 2025, 5:24 PM

Vulnerability Rating

Custom Algorithm
spread
5.0
impact
5.0
exploitability
6.6
remediation
0.0
relevance
1.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.