GHSL-2024-209_GHSL-2024-212: Code Injection in dream-num/univer’s Action’s workflows
The repository's GitHub Actions workflows were vulnerable to code injection and execution of untrusted code. An attacker could exploit these flaws to run arbitrary commands on the runner and exfiltrate secrets such as the GITHUB_TOKEN and VERCEL_TOKEN.
Originally disclosed on GitHub Security Lab
Latest
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
What the attacker needed
Ability to comment on issues or PRs; ability to create a pull request
How it was found
- Comment on any issue or pull request with a payload that exfiltrates the GITHUB_TOKEN.
- Go to the Actions tab and check the Update snapshot workflow for the comment.
- Observe the base64 encoded token in the logs.
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.
GitHub Actions is a system that runs automated tasks (workflows) when something happens, like a comment on an issue. If a workflow uses untrusted input (like a comment) directly in a command, an attacker can inject their own commands. This report shows several such mistakes, allowing an attacker to run code and 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.