diff --git a/advisories/github-reviewed/2024/11/GHSA-c86q-rj37-8f85/GHSA-c86q-rj37-8f85.json b/advisories/github-reviewed/2024/11/GHSA-c86q-rj37-8f85/GHSA-c86q-rj37-8f85.json new file mode 100644 index 00000000000..f693ae3c7b5 --- /dev/null +++ b/advisories/github-reviewed/2024/11/GHSA-c86q-rj37-8f85/GHSA-c86q-rj37-8f85.json @@ -0,0 +1,64 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-c86q-rj37-8f85", + "modified": "2024-11-15T15:17:33Z", + "published": "2024-11-15T15:17:33Z", + "aliases": [ + "CVE-2024-49758" + ], + "summary": "LibreNMS has a stored XSS in ExamplePlugin with Device's Notes", + "details": "### Summary\n\nThe application fail to sanitising inputs properly and rendering the code from user input to browser which allow an attacker to execute malicious javascript code.\n\n### Details\n\nUser with Admin role can add Notes to a device, the application did not properly sanitize the user input, when the ExamplePlugin enable, if java script code is inside the device's Notes, its will be trigger.\n\n### PoC\n\n1. As an admin user, enable the ExamplePlugin.\n\n![image](https://github.com/user-attachments/assets/409f3a0c-7fac-46e3-8140-84749a120dd9)\n\n2. Add the payload `` into the device Notes\n\n![image](https://github.com/user-attachments/assets/c2a57dbd-ea07-4166-8b29-61be6ad6c2b6)\n\n3. Once visit the Overview of the Device, a pop-up will show up.\n\n![image](https://github.com/user-attachments/assets/3c9b87c3-d010-49e7-bd13-4a715db4e0c3)\n\n### Impact\n\nIt could allow authenticated users to execute arbitrary JavaScript code in the context of other users' sessions.\nImpacted users could have their accounts compromised, enabling the attacker to perform unauthorized actions on their behalf.\n", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H" + } + ], + "affected": [ + { + "package": { + "ecosystem": "Packagist", + "name": "librenms/librenms" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "24.10.0" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 24.9.0" + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/librenms/librenms/security/advisories/GHSA-c86q-rj37-8f85" + }, + { + "type": "WEB", + "url": "https://github.com/librenms/librenms/commit/24b142d753898e273ec20b542a27dd6eb530c7d8" + }, + { + "type": "PACKAGE", + "url": "https://github.com/librenms/librenms" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-79" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-11-15T15:17:33Z", + "nvd_published_at": null + } +} \ No newline at end of file