GHSL-2020-193: Command injection in Ignitus/Ignitus-client workflow
The GitHub workflow pr-preview.yml uses the text of a public issue comment to format a bash command without sanitisation. An attacker could inject shell commands to exfiltrate the temporary GitHub token and potentially modify the repository.
The ‘pr-preview.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 commands to exfiltrate the temporary GitHub token and, by delaying the workflow, potentially modify the repository.
What the attacker needed
Public GitHub issue; ability to comment
The fix
The issue was fixed by the vendor.
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 comment on an issue. Here, the workflow takes the comment text and puts it directly into a shell command, so an attacker can type special characters that make the shell run their own commands. This lets them steal a temporary password (token) that the workflow uses to access the repository.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.