Skip to content
Advisory Intermediate

GHSL-2024-208: Poisoned Pipeline Execution (PPE) in Apache Superset

The Apache Superset repository's ephemeral environment workflow could be triggered by a comment on a pull request, and it checked out and executed a script from the pull request's branch. An attacker could open a pull request with a malicious script and comment to trigger the workflow, gaining code execution with access to AWS secrets and write access to the repository.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

Apache Superset is vulnerable to a Poisoned Pipeline Execution (PPE) attack which may lead to a full compromise of the apache/superset repository.

ghsecuritylab, 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

Root cause

The workflow checked out and executed a script from the untrusted pull request branch without proper authorisation checks, because the committer check was bypassed when the comment did not match the expected command pattern.

Impact

This issue may lead to secret leak (`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`) and full write access to the repository.

What the attacker needed

Ability to open a pull request; ability to comment on the pull request

The fix

The workflow was fixed by commit to properly enforce the committer check and prevent execution of untrusted code.

How it was found

  1. Open a pull request with a malicious version of the build script.
  2. Add a comment to the pull request that does not match the testenv command pattern.
  3. The workflow runs, checks out the pull request branch, and executes the malicious script.

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 workflow is an automated script that runs on a code hosting platform when something happens, like a comment. Here, the workflow ran a script from the pull request itself, so an attacker could put bad code in that script and have it run with the project's credentials. This gave the attacker access to secret keys and the ability to modify the repository.

More by ghsecuritylab

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.