GHSL-2020-172: Undocumented template expression evaluation in the gajira-create GitHub action - CVE-2020-14188
The gajira-create GitHub action evaluates the summary and description inputs as JavaScript templates, so an attacker who can create an issue with a crafted title or body can execute arbitrary code on the GitHub runner and exfiltrate the Jira API token.
The gajira-create GitHub action supports undocumented template syntax that may lead to arbitrary code execution.
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 action uses lodash's template function to evaluate user-supplied summary and description strings as JavaScript code, without sanitising them.
Impact
An attacker could execute arbitrary code on the GitHub runner and steal the Jira API token, though the attack requires the action to be triggered with attacker-controlled issue content.
What the attacker needed
Attacker can create or edit a GitHub issue; action uses summary or description from issue; action is triggered
The fix
The issue was fixed in version 2.0.1.
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.
This action takes text from a GitHub issue and puts it into a Jira ticket. But it also treats that text as a small program, so someone who can write an issue can make the action run their code. That code can steal the secret token used to talk to Jira.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.