Reflected Cross-site Scripting (XSS) in template implementation in oxyno-zeta/s3-proxy
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/oxyno-zeta/s3-proxy/cmd/s3-proxyGo | < 0.0.0-20250220214310-c611c741ed48 | 0.0.0-20250220214310-c611c741ed48 |
Affected products
3- ghsa-coords2 versionspkg:golang/github.com/oxyno-zeta/s3-proxy/cmd/s3-proxypkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweed
< 0.0.0-20250220214310-c611c741ed48+ 1 more
- (no CPE)range: < 0.0.0-20250220214310-c611c741ed48
- (no CPE)range: < 0.0.20250312T181707-1.1
- Range: < 4.18.0
Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-pp9m-qf39-hxjcghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-27088ghsaADVISORY
- github.com/oxyno-zeta/s3-proxy/blob/master/templates/folder-list.tplghsax_refsource_MISCWEB
- github.com/oxyno-zeta/s3-proxy/commit/c611c741ed4872ea3f46232be23bb830f96f9564ghsax_refsource_MISCWEB
- github.com/oxyno-zeta/s3-proxy/releases/tag/v4.18.1ghsaWEB
- github.com/oxyno-zeta/s3-proxy/security/advisories/GHSA-pp9m-qf39-hxjcghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.