Skip to content
RCE Advisory Intermediate

GHSL-2020-232: Command injection in wireapp/wire-webapp workflow

The GitHub workflow used the pull request title and last commit message directly in a shell command, allowing an attacker to inject arbitrary commands. An attacker could run their own code in the GitHub Actions runner, leading to CI denial of service or other limited actions.

jarlob Follow

Originally disclosed on GitHub Security Lab

The ‘testbuilddeploy.yml’ GitHub workflow is vulnerable to arbitrary command injection.

jarlob, 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 directly interpolated untrusted input (pull request title and commit message) into a shell command without sanitisation.

Impact

An attacker could run arbitrary commands in the GitHub Actions runner, but the workflow triggered by pull_request has limited repository token and no access to secrets, so the impact is limited to CI denial of service or running code in the runner context.

What the attacker needed

Ability to open a pull request

The fix

The issue was resolved by the maintainer.

How it was found

  1. Create a pull request with a title containing shell metacharacters and a command.
  2. The workflow runs and executes the injected command.

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 someone opens a pull request. Here, the workflow took the title of the pull request and put it directly into a command without checking it, so a malicious title could run extra commands on the server.

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 jarlob

View all

192 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.