RUoYi Privilege Escalation Vulnerability

Vulnerability

A privilege escalation vulnerability has been identified in RUoYi version 4.8.0. The issue arises in the 'editSave' method of the 'GenController' component, where a lack of proper access control allows remote attackers to escalate privileges. By sending a crafted request, unauthorized users can modify code generation configurations intended for administrators, potentially altering system behavior or injecting malicious code templates. This vulnerability could lead to unauthorized modifications of business logic, privilege escalation, or the creation of backdoors for executing arbitrary business logic within the application.

Impact

Exploitation of this vulnerability allows for vertical privilege escalation, enabling ordinary users to gain unauthorized access to administrative functionalities.

Reproduction

To reproduce this vulnerability, an ordinary user must access the '/tool/gen/editSave' method in the 'GenController'. After editing a configuration and saving it, the absence of access controls will be evident as the changes are successfully applied, demonstrating the privilege escalation flaw.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.6
remediation
0.0
relevance
0.0
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.