ghsa-v4v2-8h88-65qj
Vulnerability from github
Published
2023-11-24 16:54
Modified
2023-12-07 22:59
Severity ?
Summary
Attribute Injection leading to XSS(Cross-Site-Scripting)
Details
Summary
Google Analytics element Attribute Injection leading to XSS
Details
Since the custom status interface can set an independent Google Analytics ID and the template has not been sanitized, there is an attribute injection vulnerability here, which can lead to XSS attacks.
PoC
- Run the latest version of the louislam/uptime-kuma container and initialize the account password.
- Create a new status page.
-
Edit the status page and change the Google Analytics ID to following payload(it only works for firefox. Any attribute can be injected, but this seems the most intuitive):
123123" onafterscriptexecute=alert(window.name+1),eval(window.name) a="x
-
Click Save and return to the interface. XSS occurs. screenshots:
{ "affected": [ { "database_specific": { "last_known_affected_version_range": "\u003c= 1.23.6" }, "package": { "ecosystem": "npm", "name": "uptime-kuma" }, "ranges": [ { "events": [ { "introduced": "1.20.0" }, { "fixed": "1.23.7" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2023-49276" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2023-11-24T16:54:20Z", "nvd_published_at": "2023-12-01T22:15:10Z", "severity": "MODERATE" }, "details": "### Summary\nGoogle Analytics element Attribute Injection leading to XSS\n\n### Details\nSince the custom status interface can set an independent Google Analytics ID and the template has not been sanitized, there is an attribute injection vulnerability here, which can lead to XSS attacks.\n![image](https://user-images.githubusercontent.com/110759348/282278047-667b774b-421f-449a-8f95-3f3906ae4216.png)\n\n### PoC\n1. Run the latest version of the louislam/uptime-kuma container and initialize the account password.\n2. Create a new status page.\n3. Edit the status page and change the Google Analytics ID to following payload(it only works for firefox. Any attribute can be injected, but this seems the most intuitive):\n```\n123123\" onafterscriptexecute=alert(window.name+1),eval(window.name) a=\"x\n```\n\n4. Click Save and return to the interface. XSS occurs.\nscreenshots:\n![image](https://user-images.githubusercontent.com/110759348/282287393-4874974f-9416-4941-9c2e-a92ee2412197.png)\n\n![9d0603e634fb7da2e83a0a45dc0a36ac](https://user-images.githubusercontent.com/110759348/282287346-1deb0382-520f-47cf-b191-9b7d19c47879.png)\n\n\n", "id": "GHSA-v4v2-8h88-65qj", "modified": "2023-12-07T22:59:07Z", "published": "2023-11-24T16:54:20Z", "references": [ { "type": "WEB", "url": "https://github.com/louislam/uptime-kuma/security/advisories/GHSA-v4v2-8h88-65qj" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-49276" }, { "type": "WEB", "url": "https://github.com/louislam/uptime-kuma/commit/f28dccf4e11f041564293e4f407e69ab9ee2277f" }, { "type": "PACKAGE", "url": "https://github.com/louislam/uptime-kuma" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "type": "CVSS_V3" } ], "summary": "Attribute Injection leading to XSS(Cross-Site-Scripting)" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.