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.
The ‘testbuilddeploy.yml’ GitHub workflow is vulnerable to arbitrary command injection.
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
- Create a pull request with a title containing shell metacharacters and a command.
- 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.