GHSL-2021-014: Command injection in benjamin-maynard/kubernetes-cloud-mysql-backup workflow
A GitHub Actions workflow used the body of an issue comment directly in a shell command, allowing an attacker to inject arbitrary commands. This could let an attacker modify the base repository and exfiltrate secrets.
GitHub workflow in benjamin-maynard/kubernetes-cloud-mysql-backup GitHub repository repository is vulnerable to arbitrary code execution from user comments.
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
What the attacker needed
Ability to comment on an issue or pull request
The fix
The issue was resolved by the maintainers, likely by avoiding direct interpolation of the comment body into shell commands.
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 on GitHub, like a new comment. Here, the workflow took the text of a comment and put it straight into a shell command without cleaning it. That means someone could write a comment that contains special characters to run their own 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.