GHSL-2020-206: Command and template injections in Saagie workflows
GitHub Actions workflows in Saagie repositories used user-controlled issue titles, bodies, and comments to format inputs for Atlassian Jira actions and a shell command, allowing arbitrary code execution. An attacker could exfiltrate the Jira API token from the runner environment.
GitHub workflows in saagie/technologies, saagie/technologies-plugin and saagie/sdk repositories are 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
Impact
An attacker could execute arbitrary code on the GitHub runner and exfiltrate the secret Jira API token.
What the attacker needed
Public repository with vulnerable workflow; ability to comment or create issues
The fix
The issue was resolved in all affected repositories.
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 new comment. If those tasks insert user text directly into commands or action inputs without cleaning it, an attacker can write text that the system treats as code. Here, a comment or issue title could run commands on the server and steal a secret token.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.