GHSL-2020-234: Command injection in DataBiosphere/terra-workspace-manager workflow
A GitHub workflow used an issue comment's body directly in a shell command, allowing command injection. An attacker could run arbitrary commands and exfiltrate secret tokens.
The ‘preview-manage.yml’ 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 inject arbitrary commands into the bash script, potentially exfiltrating secret tokens to an attacker-controlled server.
What the attacker needed
Ability to comment on an issue
The fix
The issue was resolved, likely by sanitising or avoiding direct interpolation of the comment body into shell commands.
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. Here, the comment text was pasted straight into a shell command without cleaning it. That let a commenter sneak in extra commands, which could steal secret tokens.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.