Published three days ago via GHSA-v9fg-3cr2-277j by overtrue, this vulnerability affects versions before 1.0.0-alpha.82.
RustFS, a Rust-based file system with S3 compatibility, hosts its management console and S3 API on the same origin, creating a dangerous overlap.
The issue hides in the preview modal (console/components/object/preview-modal.vue). It renders files like PDFs in an iframe without proper content-type checks.
Attackers upload a file named “xss.pdf” with HTML content and text/html metadata. When admins preview it, the iframe, same origin as the console, runs malicious JavaScript.
This script accesses the parent window’s localStorage, where RustFS stores sensitive S3 data: AccessKeyId, SecretAccessKey, and SessionToken (see composables/useAuth.ts lines 14 and 18-25). No origin isolation or security headers block this bypass.
| Field | Details |
|---|---|
| CVE ID | CVE-2026-27822 |
| Severity | Critical |
| CVSS v3.1 Score | 9.9/10 (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H) |
| Attack Vector | Network |
| Affected Versions | < 1.0.0-alpha.82 |
| Patched Versions | 1.0.0-alpha.83 |
| Weaknesses | Stored XSS |
<script>alert('XSS Success!nLocalStorage Data: ' + JSON.stringify(window.parent.localStorage));</script> as xss.html.mc cp xss.html rustfs/my-bucket/xss.pdf --attr "Content-Type=text/html".A screenshot PoC shows the alert with stolen localStorage data.
Admins face a full takeover. Attackers gain S3 control to delete buckets, exfiltrate data, or plant backdoors.
Low complexity (network access, low privileges, required interaction), but changed scope amplifies risk in shared environments.
RustFS users should audit logs for suspicious previews. Credits to reporter naoyashiga on GitHub.
Follow us on Google News, LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google
The post Stored XSS Flaw in RustFS Console Leaks Admin S3 Credentials appeared first on Cyber Security News.
The U.S. Forest Service awarded Newark’s Tree Canopy Initiative $8 million to plant 2,700 trees…
Mohamed K. Abdelaal, 24, from Iselin was arrested May 20. Police charged him with criminal…
Andrea Samson, a 30-year-old ambulance volunteer in Bergen County, needs a kidney transplant. Two earlier…
Eight bald eagles got sick after they ate the bodies of euthanized farm animals at…
New Jersey’s gaming market pulled in just over $600 million during April 2026. That’s a…
Top.Domains posted on X that they sold Maestro.trade for $19,988. This is the highest reported…
This website uses cookies.