| शीर्षक | yangzongzhuan RuoYi 4.8.3 Cross-Site Scripting |
|---|
| विवरण | RuoYi 4.8.3 contains stored cross-site scripting in the menu management list. The stored menu icon value is concatenated into an i-element class attribute by the page formatter without attribute encoding. A user with menu modification permission can inject an event handler that executes when another administrator views the menu list.
Affected flow: menu icon field -> /system/menu/list JSON -> menu.html formatter -> i.class attribute. Attack prerequisites: user with menu add/edit permission; victim opens menu management and interacts with the icon.
Reproduction: (1) Create a menu item whose icon contains a quote-breaking event attribute. (2) Confirm the menu-list JSON returns the exact stored icon value. (3) Open the menu management list and hover the crafted icon.
Fresh verification marker: gt48261022ic3. Three independent runs returned the raw icon payload from the list endpoint. Sanitized payload: gt48261022ic3" onmouseover = self["al"+"ert"](1) x=".
Confirmed source/sink in ruoyi-admin/src/main/resources/templates/system/menu/menu.html lines 81-85:
formatter: function(value, row, index) {
if ($.common.isEmpty(row.icon)) { return row.menuName; }
else { return '<i class="' + row.icon + '"></i> ' + '<span class="nav-label">' + row.menuName + '</span>'; }
}
Database persistence and the unescaped list response were confirmed in all 3/3 fresh runs. The payload avoids angle brackets and exploits the existing attribute context. CWE-79. CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N (4.8). |
|---|
| स्रोत | ⚠️ https://github.com/yangzongzhuan/RuoYi/blob/master/ruoyi-admin/src/main/resources/templates/system/menu/menu.html |
|---|
| उपयोगकर्ता | sanktsimone (UID 102457) |
|---|
| सबमिशन | 24/10/2026 06:11 AM (1 महीना पहले) |
|---|
| संयम | 23/11/2026 07:40 AM (1 month later) |
|---|
| स्थिति | प्रतिलिपि |
|---|
| VulDB प्रविष्टि | 336230 [RuoYi तक 4.8.1 /system/menu/edit क्रॉस साइट स्क्रिप्टिंग] |
|---|
| अंक | 0 |
|---|