Wiz Red Agent Finds Its Way Into Snowflake’s Internal Jira Through a Flaw in a GitHub Copilot–Assisted PR
A GitHub Actions workflow in a public Snowflake repository interpolated the attacker-controlled issue title directly into a shell script, so any GitHub user could run arbitrary commands on the runner by opening an issue. The attacker could exfiltrate a Jira API token that gave read access to Snowflake's internal Jira projects.
As part of ongoing security research conducted through Snowflake’s HackerOne vulnerability disclosure program, Wiz Research’s "Red Agent"—an autonomous, AI-powered security research tool—identified a critical GitHub Actions workflow vulnerability in one of Snowflake’s public repositories.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The workflow interpolated the untrusted issue title directly into a shell script, and the sed-based escaping ran after GitHub's template expansion, so a single quote in the title broke out of the quoted string.
Impact
The exfiltrated token authenticated as a QA account to Snowflake's Atlassian Jira and granted read access across engineering, security compliance and bug bounty tracking projects; audit logs confirmed no other party accessed the endpoint during the five-day window.
What the attacker needed
Public GitHub repository; ability to open a GitHub issue; no account needed beyond GitHub
The fix
Snowflake patched the workflow the same day, restoring the safe env: variable and jq --arg parsing pattern, and rotated the Jira token.
How it was found
- Open a GitHub issue on the public repository with a crafted title.
- The issues: opened trigger runs the jira_issue.yml workflow.
- The title is expanded into the shell script and breaks out of the quoted string.
- The injected command sends the Jira credentials to an out-of-band listener.
- The listener receives base64-encoded credentials from the runner.
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 write-up 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, such as a new issue being opened. This workflow pasted the issue title straight into a shell command without proper escaping, so a title containing a single quote could break out of the command and run extra commands. The attacker used that to send a secret Jira token to a server they controlled.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.