Helm local code execution via a malicious chart
1–10 of 99 posts
Re: Helm local code execution via a malicious chart
#2Is the vulnerability that you ship a chart with `Chart.lock -> ../.bashrc`, and then helm writes to `Chart.lock`?
Why is the fix specific to Chart.lock (https://github.com/helm/helm/commit/76fdba4c8c2a4829a6b7abb4...), wouldn't the fix be instead that "A chart cannot contain any symlinks outside of its root"?
Re: Helm local code execution via a malicious chart
#3This is not the first RCE involving YAML and it won't be the last.
Re: Helm local code execution via a malicious chart
#4Re: Helm local code execution via a malicious chart
#5Re: Helm local code execution via a malicious chart
#6Re: Helm local code execution via a malicious chart
#7If we're being honest, YAML is one of the dumbest ideas of the last 20 years to have proliferated. How we got from XML to here I cannot comprehend. This is not the first RCE involving YAML and it won't be the last.
Re: Helm local code execution via a malicious chart
#81. Attacker crafts a malicious Chart.yaml containing arbitrary code
2. Replaces Chart.lock with a symlink pointing to a sensitive file (like .bashrc or other startup scripts)
3. When you run helm dependency update, Helm processes the malicious Chart.yaml and writes the payload to whatever file the symlink targets
4. Code executes when the targeted file is next used (e.g., opening a new shell)
Why This Works: Helm follows the symlink during the dependency update process without validating the target, allowing arbitrary file writes outside the intended chart directory.
Re: Helm local code execution via a malicious chart
#9If we're being honest, YAML is one of the dumbest ideas of the last 20 years to have proliferated. How we got from XML to here I cannot comprehend. This is not the first RCE involving YAML and it won't be the last.
> Showing 1 - 25 of 6,749 results for XML
Searching for YAML:
> Showing 1 - 25 of 288 results for YAML
Re: Helm local code execution via a malicious chart
#10If we're being honest, YAML is one of the dumbest ideas of the last 20 years to have proliferated. How we got from XML to here I cannot comprehend. This is not the first RCE involving YAML and it won't be the last.
A search for XML on cve.org gives > Showing 1 - 25 of 6,749 results for XML Searching for YAML: > Showing 1 - 25 of 288 results for YAML