Reflected Cross-site Scripting (XSS) in template implementation in oxyno-zeta/s3-proxy
oxyno-zeta s3-proxy
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy Go |
|
|
| github.com/oxyno-zeta/s3-proxy Go |
|
|
oxyno-zeta s3-proxy
| Product | Affected | Fixed in |
|---|---|---|
| github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy Go |
|
|
| github.com/oxyno-zeta/s3-proxy Go |
|
|
oxyno-zeta/s3-proxy is an aws s3 proxy written in go. In affected versions a Reflected Cross-site Scripting (XSS) vulnerability enables attackers to create malicious URLs that, when visited, inject scripts into the web application. This can lead to session hijacking or phishing attacks on a trusted domain, posing a moderate risk to all users. It's possible to inject html elements, including scripts through the folder-list template. The affected template allows users to interact with the URL path provided by the `Request.URL.Path` variable, which is then rendered directly into the HTML without proper sanitization or escaping. This can be abused by attackers who craft a malicious URL containing injected HTML or JavaScript. When users visit such a URL, the malicious script will be executed in the user's context. This issue has been addressed in version 4.18.1 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
From the CVE record · GitHub_M
Affected s3-proxy versions render the URL path in the folder-list template without proper escaping. An attacker can craft a malicious URL that executes a script in a user's browser when the user visits it, potentially enabling session hijacking or phishing.
Teams running oxyno-zeta s3-proxy or either Go package, github.com/oxyno-zeta/s3-proxy or github.com/oxyno-zeta/s3-proxy/cmd/s3-proxy, at versions before 0.0.0-20250220214310-c611c741ed48 should check their deployments.