Skip to content
Access control Advisory Intermediate

GHSL-2024-313: Poisoned Pipeline Execution (PPE) in Marimo

The marimo-bot GitHub Actions workflow triggers on a comment containing a specific command and checks out the pull request branch, allowing an attacker to execute arbitrary code from their branch. This gives the attacker write access to the repository and the ability to exfiltrate secrets such as TURBO_TOKEN and NPM_TOKEN.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

Marimo is vulnerable to Poisoned Pipeline Execution (PPE) which may allow an attacker to get write permissions to the repository and exfiltrate secrets such as TURBOTOKEN or NPMTOKEN

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

An attacker could use the GITHUB_TOKEN to perform any write operations to the repository and could dump the runner’s memory to exfiltrate secrets such as TURBO_TOKEN and NPM_TOKEN.

What the attacker needed

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

The fix

The issue was fixed in commit 9668948.

How it was found

  1. Create a pull request.
  2. Comment on the pull request with the trigger text.
  3. Modify a file such as the Makefile in the pull request branch to execute arbitrary code.
  4. The workflow checks out the pull request branch and runs the modified build step.

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 is an automated script that runs when something happens, like a comment on a pull request. Here, the workflow ran code from the pull request itself, so anyone who opened a pull request could make the workflow run their own commands. Those commands then had powerful permissions, letting the attacker change the repository and steal secret tokens.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.