Advisory

GHSA-9phh-r37v-34wh

Also known as: GO-2023-2012

Summary

lakeFS vulnerable to Arbitrary JavaScript Injection via Direct Link to HTML Files

Details

Impact
The browser renders the resulting HTML when opening a direct link to an HTML file via lakeFS. Any JavaScript within that page is executed within the context of the domain lakeFS is running in.
An attacker can inject a malicious script inline, download resources from another domain, or make arbitrary HTTP requests. This would allow the attacker to send information to a random domain or carry out lakeFS operations while impersonating the victim.

Note that to carry out this attack, an attacker must already have access to upload the malicious HTML file to one or more repositories. It also depends on the victim receiving and opening the link to the malicious HTML file.

Patches
This is fixed in lakeFS version 0.106.0

Workarounds
There are no known workarounds at this time.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-08-14 21:10 UTC
Modified
2024-08-21 14:42 UTC

Affected packages and fixes

github.com/treeverse/lakefs

Go · All systems

Affected

  • introduced 0, fixed 0.106.0 (semver)

Fixed versions

0.106.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences