GHSL-2020-171: Command injection in arduino/arduino-cli workflow
The GitHub workflow that creates a Jira issue from a public GitHub issue used the issue title and body unsanitised in a shell command, allowing an attacker to inject arbitrary commands. An attacker could exfiltrate the secret Jira API token to a server they control.
The ‘Jira-issue’ 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
Impact
An attacker could execute arbitrary commands and exfiltrate the secret Jira API token.
What the attacker needed
Ability to create a public GitHub issue
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.
When someone opens a new issue on GitHub, a script automatically runs to copy that issue into a Jira project. The script put the issue's title and text directly into a command without cleaning it first. This meant an attacker could type special characters in the issue that made the script run their own commands, like sending a secret password to themselves.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.