GHSL-2020-207: Template injection in a GitHub workflow of repository hashicorp/boundary-ui
A GitHub workflow in the hashicorp/boundary-ui repository passed user-controlled comment text into the atlassian/gajira-comment action, which internally evaluates double-curly-brace expressions. An attacker could comment on an issue with a crafted expression to execute arbitrary code on the GitHub runner and exfiltrate the Jira API token.
Automatic GitHub workflow in hashicorp/boundary-ui repository is vulnerable to template injection 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
Ability to comment on an issue
The fix
The vendor remediated the issue.
How it was found
- An attacker comments on an issue with a crafted expression in double curly braces.
- The workflow's Sync comment step passes the comment body to the atlassian/gajira-comment action.
- The action evaluates the expression, executing arbitrary code on the GitHub runner.
- The code exfiltrates the Jira API token to an attacker-controlled server.
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 workflow is an automated script that runs when something happens, like a new comment. This workflow took the text of a comment and passed it to a third-party action that unexpectedly treated parts of the text as code. So a commenter could write special code in their comment, and it would run on the server, letting them 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.