Skip to content
RCE Advisory Advanced

GHSL-2024-320_GHSL-2024-321: Poisoned Pipeline Execution (PPE) via Code Injection in multiple Eclipse repositories

Two code injection flaws in GitHub Actions workflows allowed an attacker to run arbitrary commands on a runner and exfiltrate a personal access token with organisation write permissions. The first used an attacker-controlled branch name in a shell command, and the second used attacker-controlled file names from a patch in a JavaScript script.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

Multiple Eclipse repositories are vulnerable to Poisoned Pipeline Execution (PPE) via Code Injection allowing a malicious actor to exfiltrate the Eclipse’s Personal Access Token with organization write permission.

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

Root cause

Likely, the workflows interpolated attacker-controlled values (branch name and file names) directly into shell and JavaScript code without sanitisation, enabling command injection.

Impact

An attacker could exfiltrate the JDT_BOT_PAT, a personal access token that may have organisation-level write access.

What the attacker needed

Ability to create a pull request; ability to upload a patch artifact

How it was found

  1. Create a pull request from a branch with a crafted name containing shell metacharacters.
  2. The workflow runs and interpolates the branch name into a git push command, executing the injected command.
  3. Alternatively, upload a patch file that changes file names to include JavaScript code.
  4. The workflow applies the patch and later interpolates the file list into a github-script step, executing the injected JavaScript.

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.

GitHub Actions are automated tasks that run when something happens, like a pull request. If a workflow puts user-controlled text (like a branch name or file name) directly into a command without cleaning it, an attacker can sneak in extra commands. Here, that let the attacker steal a secret token that had write access to the organisation's code.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.