Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04MzNtLTM3ZjctanE1Nc4AA5Kr
Rancher API Server Cross-site Scripting Vulnerability
Impact
A vulnerability has been identified in which unauthenticated cross-site scripting (XSS) in the API Server'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.
API Server 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 | 4fd7d82 |
release/v2.8 | 69b3c2b |
release/v2.8.s3 | a3b9e37 |
release/v2.7 | 4e102cf |
release/v2.7.s3 | 97a10a3 |
release/v2.6 | 4df268e |
Workarounds
There is no direct mitigation besides updating API Server 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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04MzNtLTM3ZjctanE1Nc4AA5Kr
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 10 months ago
Updated: about 2 months ago
CVSS Score: 8.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Identifiers: GHSA-833m-37f7-jq55, CVE-2023-32192
References:
- https://github.com/rancher/apiserver/security/advisories/GHSA-833m-37f7-jq55
- https://github.com/rancher/apiserver/commit/4df268e250f625fa323349062636496e0aeff4e4
- https://github.com/rancher/apiserver/commit/4e102cf0d07b1af3d10d82c3e5a751a869b8a6c7
- https://github.com/rancher/apiserver/commit/4fd7d821d952510bfe38c9d4a3e2a65157f50525
- https://github.com/rancher/apiserver/commit/69b3c2b56f3fa5a421889c533dada8cd08783cda
- https://github.com/rancher/apiserver/commit/97a10a30200cb851afd8ee85ee6b2295c4b6e5ee
- https://github.com/rancher/apiserver/commit/a3b9e3721c1b558ee63aec9594e37c223a5c8437
- https://nvd.nist.gov/vuln/detail/CVE-2023-32192
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2023-32192
- https://github.com/advisories/GHSA-833m-37f7-jq55
Blast Radius: 16.8
Affected Packages
go:github.com/rancher/apiserver
Dependent packages: 51Dependent repositories: 107
Downloads:
Affected Version Ranges: < 0.0.0-20240207153957-4fd7d821d952
Fixed in: 0.0.0-20240207153957-4fd7d821d952
All affected versions: 0.0.0-20201023000256-1a0a904f9197, 0.0.0-20220610164457-643f1d19e3fc, 0.0.0-20221019172825-fe12f2183e71, 0.0.0-20221205175736-7c507bd5c076, 0.0.0-20221220225852-94cba4f28cfd, 0.0.0-20221229135954-26bed53611c4, 0.0.0-20230120214941-e88c32739dc7, 0.0.0-20230222210737-8e1da4c6d53e, 0.0.0-20230426211119-c75d1c70aa2b, 0.0.0-20230508201313-13b7e4889f99, 0.0.0-20230515173455-c3b182bdbf7d, 0.0.0-20230525191144-cc8f3892d011, 0.0.0-20230727181320-c84375939328, 0.0.0-20230809162532-de731cd43b96, 0.0.0-20230810200109-ed9bd39ea702, 0.0.0-20230810214006-d134152ce6fb, 0.0.0-20230831052300-120e615b17ba
All unaffected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.5.1