GitHub Advisoryadvisory · Go
GHSA-r8f4-hv23-6qp6 Norman API Cross-site Scripting Vulnerability
HIGH
Official page ↗
- Aliases
- CVE-2023-32193
- Ecosystem
- Go
- Packages
- github.com/rancher/norman
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
- Weaknesses
- CWE-80
- Reviewed
- 2024-02-08
Affected packages
• Go github.com/rancher/norman: < 0.0.0-20240207153100-3bb70b772b52 → fixed in 0.0.0-20240207153100-3bb70b772b52
Description
Impact
A vulnerability has been identified in which unauthenticated cross-site scripting (XSS) in Norman's public API endpoint can be exploited. This can lead to an attacker exploiting the vulnerability to trigger JavaScript code and execute commands remotely.
The attack vector was identified as a Reflected XSS.
Norman API propagates malicious payloads from user input to the UI, which renders the output. For example, a malicious URL gets rendered into a script that is executed on a page.
The changes addressed by this fix are:
• Encode input that comes from the request URL before adding it to the response.
• The request input is escaped by changing the URL construction that is used for links to use `url.URL`.
• The request input is escaped by escaping the JavaScript and CSS variables with attribute encoding as defined by OWASP.
Patches
Patched versions include the following commits:
| Branch | Commit |
| -------- | ------- |
| master | 3bb70b7 |
| release/v2.8 | a6a6cf5 |
| release/v2.7 | cb54924 |
| release/v2.7.s3 | 7b2b467 |
| release/v2.6 | bd13c65 |
Workarounds
There is no direct mitigation besides updating Norman API to a patched version.
References
If you have any questions or comments about this advisory:
• Reach out to the SUSE Rancher Security team for security-related inquiries.
• Open an issue in the Rancher repository.
• Verify with our support matrix and product support lifecycle.
Related
Alias · CVE (1)
- CVE-2023-32193 A vulnerability has been identified in which unauthenticated cross-site scripting (XSS) in Norman's public API endpoint can be exploited. vulnerability
Weakness · CWE (1)
- CWE-80 Improper Neutralization of Script-Related HTML Tags in a Web Page weakness
References
- https://github.com/rancher/norman/security/advisories/GHSA-r8f4-hv23-6qp6 web
- https://nvd.nist.gov/vuln/detail/CVE-2023-32193 advisory
- https://github.com/rancher/norman/commit/3bb70b772b52297feac64f5fdeb1b13c06c37e39 web
- https://github.com/rancher/norman/commit/7b2b467995e6dfab6d4a5dee8dffc15033ae8269 web
- https://github.com/rancher/norman/commit/a6a6cf5696088c32002953d36b75bdcc84f2399e web
- https://github.com/rancher/norman/commit/bd13c653293b9b5e0b37e8a6ccd1c3277f4623ed web
- https://github.com/rancher/norman/commit/cb54924f25c7666511a913cd41834299ef22dba4 web
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2023-32193 web
- https://github.com/rancher/norman package