Skip to content
Cache bugs Advisory Intermediate

GHSL-2024-226_GHSL-2024-227: Poisoned Pipeline Execution (PPE) in Cilium

The Cilium push-chart-ci workflow checks out and executes untrusted code from a pull request, allowing an attacker to exfiltrate secrets and poison the default branch cache. This could lead to privilege escalation in other workflows.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

Cilium push-chart-ci.yaml workflow is vulnerable to a Poisoned Pipeline Execution (PPE) attack which may lead to the exfiltration of the QUAYCHARTSDEVPASSWORD and QUAYCHARTSDEVUSERNAME secrets. Additionally, it is also vulnerable to Cache Poisoning attack which may allow an attacker to gain elevated privileges in a…

pwntester, on GitHub Security Lab

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

The attacker-controlled code can dump the runner's memory to exfiltrate the QUAY_CHARTS_DEV_PASSWORD and QUAY_CHARTS_DEV_USERNAME secrets, and can write to the default branch cache, potentially leading to privilege escalation in other workflows.

What the attacker needed

GitHub account; ability to fork and create PR

The fix

The issue was fixed by a commit and a proposed security in-depth fix.

How it was found

  1. Fork the project and create a pull request that modifies two files.
  2. Modify ./contrib/scripts/print-chart-version.sh to contain attacker-controlled code.
  3. Modify .github/workflows/build-images-ci.yaml to run on pull_request and finish successfully.
  4. Submit the pull request, which triggers the Image CI Build workflow.
  5. Upon completion, the vulnerable Chart CI Push workflow runs and executes the attacker's code.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A GitHub Actions workflow automatically runs code from a pull request without checking if it is safe. An attacker can change a script in their pull request so that when the workflow runs, it steals secret passwords and also writes malicious files to a shared cache that other workflows use.

What is Cache bugs?

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.