The application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.
User with Admin role can create a Device Groups, the application did not properly sanitize the user input in the Device Groups name, when user see the detail of the Device Group, if java script code is inside the name of the Device Groups, its will be trigger.
Login as an Admin role user. Then go over to "$URL/device-groups"
Create a new Device Group with this payload in their name
<img src="x" onerror="alert(document.cookie)">
Go over to the detail page of that Device Groups, in this case "$URL/devices/group=2". Will see a pop-up.
Attacker can use this to perform malicious java script code for malicious intent. This would impact all users as anyone can have access to the detail page of the device group.
{ "nvd_published_at": "2024-10-01T21:15:07Z", "cwe_ids": [ "CWE-79" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2024-10-01T20:31:17Z" }